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

Namespace: Slash.Math.Utils
Assembly: Slash.Math (in Slash.Math.dll) Version: 1.0.6018.40177
Syntax
public static float AngleDiff(
	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 (-Pi, Pi).
See Also