math.NormalizeAngle

From Garry's Mod
Jump to: navigation, search
 math.NormalizeAngle( )

Description

Normalizes angle, so it returns value between -180 and 180.

Arguments

number angle

The angle to normalize, in degrees.

Returns

number

The normalized angle, in the range of -180 to 180 degrees.
Personal tools
Navigation