math.rotate

From Wake
Jump to: navigation, search

Create a rotation matrix from an angle and axis.

Function

Synopsis

result = math.rotate(angle, v)
result = math.rotate(m, angle, v)

Arguments

number angle

The angle, in radians.


Vector3 v

The axis to rotate around.


Matrix4x4 m

The matrix to put the rotation into.

Returns

Matrix4x4 result

A rotation matrix.

See Also