public PointDList Clone() { PointDList list = new PointDList(); this.ForEach(p => list.Add(p.Clone() as PointD)); return(list); }
void CreateFromLines(LineList lines) { _points = new PointDList(); foreach (Line line in lines) { _points.Add(line.P1 as PointD); } }
public PointDList ToPointDList() { PointDList list = new PointDList(); foreach (GeoPoint point in GeoPoints) { list.Add(point.ToPointD()); } return(list); }
public PointDList ToPointDList() { PointDList list = new PointDList(); foreach (GeoPoint point in this) { list.Add(new PointD(point)); } return(list); }
public static RectangleD Inflate(RectangleD original, Double xAmount, Double yAmount) { PointDList points = new PointDList(); foreach (PointD point in original.PointList) { points.Add(new PointD(point.X * xAmount, point.Y * yAmount)); } RectangleD newRect = new RectangleD(points[0], points[1], points[2], points[3]); return(newRect); }
public void AddVertice(PointD point) { _points.Add(point); }