Class GeoPoint2D.CompareCloseTo
- Namespace
- CADability
- Assembly
- CADability.dll
Comparer that orders GeoPoint2D objects by their distance to a fixed reference point, the closest
first. Used to sort e.g. intersection points by their distance to a given position:
points.Sort(new GeoPoint2D.CompareCloseTo(position)).
public class GeoPoint2D.CompareCloseTo : IComparer<GeoPoint2D>
- Inheritance
-
GeoPoint2D.CompareCloseTo
- Implements
- Inherited Members
Constructors
CompareCloseTo(GeoPoint2D)
Creates a comparer for the distance to the given point.
public CompareCloseTo(GeoPoint2D ToHere)
Parameters
ToHereGeoPoint2Dthe reference point the distances are measured to