示例#1
0
        public PointDList Clone()
        {
            PointDList list = new PointDList();

            this.ForEach(p => list.Add(p.Clone() as PointD));
            return(list);
        }
示例#2
0
        void CreateFromLines(LineList lines)
        {
            _points = new PointDList();

            foreach (Line line in lines)
            {
                _points.Add(line.P1 as PointD);
            }
        }
示例#3
0
        public PointDList ToPointDList()
        {
            PointDList list = new PointDList();

            foreach (GeoPoint point in GeoPoints)
            {
                list.Add(point.ToPointD());
            }
            return(list);
        }
示例#4
0
        public PointDList ToPointDList()
        {
            PointDList list = new PointDList();

            foreach (GeoPoint point in this)
            {
                list.Add(new PointD(point));
            }
            return(list);
        }
示例#5
0
        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);
        }
示例#6
0
 public void AddVertice(PointD point)
 {
     _points.Add(point);
 }