Exemple #1
0
 public VertexList(PointF[] p)
 {
     NofVertices = p.Length;
     Vertex = new Vertex[NofVertices];
     for (int i = 0; i < p.Length; i++)
         Vertex[i] = new Vertex((double)p[i].X, (double)p[i].Y);
 }
Exemple #2
0
 public VertexList(Vertex[] v, bool takeOwnership)
 {
     if (takeOwnership)
     {
         this.Vertex = v;
         this.NofVertices = v.Length;
     }
     else
     {
         this.Vertex = (Vertex[])v.Clone();
         this.NofVertices = v.Length;
     }
 }
Exemple #3
0
 public VertexList(Vertex[] v)
     : this(v, false)
 {
 }