Class NormalizedAngleComparer
- Namespace
- SearchAThing.Sci
- Assembly
- netcore-sci.dll
normalized angles in range [StartAngle, EndAngle] comparer
Example:
start:1.25π end:0.5π the set { 0.25π, 0.75π } sorts to { 0.75π, 0.25π }
Precondition: constructor start, end angles and compare method arguments must normalized [0,2PI)
public class NormalizedAngleComparer : IComparer<double>
- Inheritance
-
NormalizedAngleComparer
- Implements
- Inherited Members
Constructors
NormalizedAngleComparer(double, double)
public NormalizedAngleComparer(double normalizedStartAngleRad, double normalizedEndAngleRad)
Parameters
Properties
NormalizedEndAngleRad
public double NormalizedEndAngleRad { get; }
Property Value
NormalizedStartAngleRad
public double NormalizedStartAngleRad { get; }
Property Value
Methods
Compare(double, double)
compare two angles ; precondition: angles must already normalized
public int Compare(double xAngleRad, double yAngleRad)