MoonTools.Bonk/Bonk/NarrowPhase/Edge2D.cs

19 lines
373 B
C#
Raw Permalink Normal View History

2019-10-31 23:19:30 +00:00
using System.Numerics;
2019-09-06 08:11:58 +00:00
2020-02-21 02:07:59 +00:00
namespace MoonTools.Bonk
2019-09-06 08:11:58 +00:00
{
2020-09-07 02:38:51 +00:00
internal struct Edge2D
2019-09-06 08:11:58 +00:00
{
public float distance;
public Vector2 normal;
public int index;
2020-09-07 02:38:51 +00:00
public Edge2D(float distance, Vector2 normal, int index)
2019-10-31 23:19:30 +00:00
{
2019-09-06 08:11:58 +00:00
this.distance = distance;
this.normal = normal;
this.index = index;
}
}
}