SuperMap.WindowsPhone.Core.PolygonElementClip.Clip C# (CSharp) Method

Clip() private method

private Clip ( Point2DCollection pts ) : Point2DCollection
pts Point2DCollection
return Point2DCollection
        internal Point2DCollection Clip(Point2DCollection pts)
        {
            Point2DCollection newPoints ;
            newPoints = pts;
            if (pts.GetBounds().IntersectsWith(this.boundary))
            {
                foreach (Edge edge in this.Edges)
                {
                    newPoints = ClipRing(newPoints, edge);
                }
            }
            return newPoints;
        }