Пример #1
0
 public void Clone(Vector2DCollection vector2DCollection)
 {
     this.Capacity = vector2DCollection.Capacity;
     this.Vectors  = new Vector2D[Capacity];
     vector2DCollection.Vectors.CopyTo(this.Vectors, 0);
     CurrentCount = vector2DCollection.Count;
 }
Пример #2
0
 public Polygon2DAdorner(Polygon2D p)
 {
     polygon = p;
     triangles = new Triangle2DCollection(1);
     lineSegments = new LineSegment2DCollection(1);
     internalSegments = new Vector2DCollection(1);
     ghostTriangles = new GhostTriangle2DCollection(1);
 }
Пример #3
0
        public void Union(Vector2DCollection vector2DCollection)
        {
            Capacity += vector2DCollection.Capacity;

            Vector2D[] vectors = new Vector2D[Capacity];

            this.Vectors.CopyTo(vectors, 0);
            vector2DCollection.Vectors.CopyTo(vectors, this.Count);
            this.Vectors  = vectors;
            CurrentCount += vector2DCollection.Count;
        }
        public void Union(Vector2DCollection vector2DCollection)
        {
            Capacity += vector2DCollection.Capacity;

            Vector2D[] vectors = new Vector2D[Capacity];

            this.Vectors.CopyTo(vectors, 0);
            vector2DCollection.Vectors.CopyTo(vectors, this.Count);
            this.Vectors = vectors;
            CurrentCount += vector2DCollection.Count;
        }
 public void Clone(Vector2DCollection vector2DCollection)
 {
     this.Capacity = vector2DCollection.Capacity;
     this.Vectors = new Vector2D[Capacity];
     vector2DCollection.Vectors.CopyTo(this.Vectors, 0);
     CurrentCount = vector2DCollection.Count;
 }