Click or drag to resize

TrigGetSmallSpan Method

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
)

Parameters

startAngle
Type: SystemDouble
The first angle, in radians.
stopAngle
Type: SystemDouble
The second angle, in radians.

Return Value

Type: Double
The 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