Function AstarMath.DeltaAngle

DeltaAngle (float angle1, float angle2)

Calculates the shortest difference between two given angles given in radians.

Public Static
float DeltaAngle (

float

angle1

float

angle2

)

Calculates the shortest difference between two given angles given in radians.

The return value will be between -pi/2 and +pi/2.