Angle/Normalize

From Garry's Mod
Jump to: navigation, search
 Angle:Normalize( )

Description

Normalizes the angles by applying a module with 360 to pitch, yaw and roll.

Examples

Example

Example usage of the function

local a = Angle( 0, 181, 1 )
a:Normalize()
print( a )

Output:

0.000 -179.000 1.000
Personal tools
Navigation