예제 #1
0
 public Edge(Vertex v1, Vertex v2)
 {
     this.V1 = v1;
     this.V2 = v2;
 }
예제 #2
0
 public static float GetProjection(
     Vector2 axis,
     Vertex vertex
     )
 {
     float dotProduct = Vector2.Dot(axis, vertex.ToVector2());
     return dotProduct;
 }