Get the signed small span between two arbitrary angles, in radians.
This will return the angle in radians between -π and π representing
the angular distance between the two given angles. It will remove the
effect of 'winding' and compare the angular distance on the unit circle.
Namespace:
AGI.Foundation
Assembly:
AGI.Foundation.Core (in AGI.Foundation.Core.dll) Version: 24.2.419.0 (24.2.419.0)
Syntax public static double GetSmallSpan(
double startAngle,
double stopAngle
)
Public Shared Function GetSmallSpan (
startAngle As Double,
stopAngle As Double
) As Double
public:
static double GetSmallSpan(
double startAngle,
double stopAngle
)
static member GetSmallSpan :
startAngle : float *
stopAngle : float -> float
Parameters
- startAngle
- Type: SystemDouble
The first angle, in radians. - stopAngle
- Type: SystemDouble
The second angle, in radians.
Return Value
Type:
DoubleThe signed small span between the two angles, in radians.
Remarks
As an example, if startAngle is 1.0 and
stopAngle is 2π, then the simple difference
will be 2π - 1.0 and the "small span" would be -1.0.
See Also