closestInRange method - AngleRange class - core library - Dart API
closestInRange
closestInRange method
- double angleClockwiseInDegreesFromNorth
Get the angle that is closest to the given one and in range.
If the angle to both ends of the range is the same, the value in the clockwise direction is returned. If the given angle is in range already, it will be returned as normalized angle.
angleClockwiseInDegreesFromNorthAn angle in degrees from north. Will be normalized.
Returns double. The closest, normalized in-range angle in degrees, clockwise from north.
If the given angle is in range already, the given angle will be returned as normalized angle in degree, clockwise from north.
Implementation
double closestInRange(double angleClockwiseInDegreesFromNorth) => $prototype.closestInRange(this, angleClockwiseInDegreesFromNorth);