Ejemplo n.º 1
0
 internal static bool SegmentToSegmentIntersection(Segment s1, Segment s2, ref Vector2 i)
 {
     return(Vector2.SegmentToSegmentIntersection(s1.Point1, s1.Point2, s2.Point1, s2.Point2, ref i));
 }
Ejemplo n.º 2
0
 internal static bool AlmostEquals(this Vector2 v1, Vector2 v2)
 {
     return((v1 - v2).sqrMagnitude < 0.01f);
 }
Ejemplo n.º 3
0
 public Vertex2D(Mathematics.Vector2 position, Mathematics.Vector2 texcoord)
 {
     this.position = position;
     this.texcoord = texcoord;
 }