Beispiel #1
0
 public void Clear()
 {
     _polyLines = new List <PolyLine>();
     _MBR       = new RectangleD();
 }
Beispiel #2
0
        ////加入点,效率不高,用到的较少
        //public void AddPoint(PointD point)
        //{
        //    PointD[] mPoints = new PointD[_Points.Length + 1];
        //    for(int i = 0; i < _Points.Length; i++)
        //    {
        //        mPoints[i] = _Points[i];
        //    }
        //    mPoints[_Points.Length + 1] = point;
        //    _Points = mPoints;
        //}

        public void Clear()
        {
            _Points = null;
            _MBR = new RectangleD();
        }
Beispiel #3
0
 public void Clear()
 {
     _Polygons = new List <Polygon>();
     _MBR      = new RectangleD();
 }