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))); }
internal void Add(Point intersect, List <GroupBoundaryCrossing> crossings) { ListOfPointsAndCrossings.Add(new PointAndCrossings(intersect, crossings)); }