Garry's Mod Wiki

Angle:RotateAroundAxis

  Angle:RotateAroundAxis( Vector axis, number rotation )

Description

Rotates the angle around the specified axis by the specified degrees.

Arguments

1 Vector axis
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.
2 number rotation
The degrees to rotate around the specified axis.