Пример #1
0
        internal void Trim(Point start, Point end)
        {
            Reset();
            if ((null == ListOfPointsAndCrossings) || (0 == ListOfPointsAndCrossings.Count))
            {
                return;
            }

            ListOfPointsAndCrossings = new List <PointAndCrossings>(ListOfPointsAndCrossings.Where(
                                                                        pair => (PointComparer.Compare(pair.Location, start) >= 0) && (PointComparer.Compare(pair.Location, end) <= 0)));
        }
Пример #2
0
 internal void Add(Point intersect, List <GroupBoundaryCrossing> crossings)
 {
     ListOfPointsAndCrossings.Add(new PointAndCrossings(intersect, crossings));
 }