Exemple #1
0
 public static Vertex Create(float x, float y) {
     if (float.IsNaN(x) || float.IsNaN(y)) {
         return VertexAtInfinity;
     }
     var v = new Vertex(x, y);
     return v;
 }
Exemple #2
0
 public void SetVertex(LR.Side leftRight, Vertex v) {
     if (leftRight == LR.Side.Left) {
         LeftVertex = v;
     } else {
         RightVertex = v;
     }
     if (Vertex(LR.Other(leftRight)) != null) {
         OutEnd();
     }
 }