Garry's Mod Wiki

Angle:Normalize

  Angle:Normalize()

Description

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

Example

Example usage of the function

local a = Angle( 0, 181, 1 ) a:Normalize() print( a )
Output: 0.000 -179.000 1.000