Garry's Mod Wiki

Revision Difference

math.NormalizeAngle#546918

<function name="NormalizeAngle" parent="math" type="libraryfunc"> <description>Normalizes angle, so it returns value between -180 and 180.</description> <realm>Shared and Menu</realm> <file line="192-L194">lua/includes/extensions/math.lua</file> <file line="198-L200">lua/includes/extensions/math.lua</file> <args> <arg name="angle" type="number">The angle to normalize, in degrees.</arg> </args> <rets> <ret name="" type="number">The normalized angle, in the range of -180 to 180 degrees.</ret> </rets> </function>