Garry's Mod Wiki

Revision Difference

Angle:RotateAroundAxis#529379

<function name="RotateAroundAxis" parent="Angle" type="classfunc"> <description>Rotates the angle around the specified axis by the specified degrees.</description> <realm>Shared</realm> <args> <arg name="axis" type="Vector">The axis to rotate around.</arg> <arg name="rotation" type="number">The degrees to rotate around the specified axis.</arg> </args> </function>⤶ <description>Rotates the angle around the specified axis by the specified degrees.</description> <realm>Shared</realm> <args> <arg name="axis" type="Vector">The axis to rotate around as a normalized unit vector. When argument is not a unit vector, you will experience numerical offset errors in the rotated angle.</arg> <arg name="rotation" type="number">The degrees to rotate around the specified axis.</arg> </args> </function>