Click or drag to resize
AnglesAngleDiffPositive Method
Computes the smallest difference from first to second angle. Takes into account cases like AngleDiff( -Pi, Pi ) == 0. Returned radian angle is between (0, 2*Pi).

Namespace: Slash.Math.Utils
Assembly: Slash.Math (in Slash.Math.dll) Version: 1.0.6018.40177
Syntax
public static float AngleDiffPositive(
	float angleA,
	float angleB
)

Parameters

angleA
Type: SystemSingle
First angle (in radians).
angleB
Type: SystemSingle
Second angle (in radians).

Return Value

Type: Single
Smallest difference between the two angles (in radians) between (0, 2*Pi).
See Also