Class CompareGeoPoint2DWithParameter1
- Namespace
- CADability.Curve2D
- Assembly
- CADability.dll
Non-generic IComparer that orders GeoPoint2DWithParameter values by par1, the parameter on the first curve of an intersection. Sorting the result of Intersect(ICurve2D) with it arranges the intersection points along the first curve. The generic counterpart for a List<T> is ICompareGeoPoint2DWithParameter1.
public class CompareGeoPoint2DWithParameter1 : IComparer
- Inheritance
-
CompareGeoPoint2DWithParameter1
- Implements
- Inherited Members
Constructors
CompareGeoPoint2DWithParameter1()
Creates the comparer. It has no state.
public CompareGeoPoint2DWithParameter1()
Methods
Compare(object, object)
Compares two boxed GeoPoint2DWithParameter values by their par1.
public int Compare(object x, object y)
Parameters
xobjectthe first value, must be a GeoPoint2DWithParameter
yobjectthe second value, must be a GeoPoint2DWithParameter
Returns
- int
-1 if the parameter of
xis smaller, 1 if it is greater, 0 if both are equal