Mat4:rotate

Edit

Rotates the matrix using a quaternion or an angle/axis rotation.



Arguments

NameTypeDescription
qQuat The rotation to apply to the matrix.

Returns

NameTypeDescription
selfMat4 The rotated matrix.

Arguments

NameTypeDefaultDescription
anglenumber The angle component of the angle/axis rotation (radians).
axnumber0 The x component of the axis of rotation.
aynumber1 The y component of the axis of rotation.
aznumber0 The z component of the axis of rotation.

Returns

NameTypeDescription
selfMat4 The rotated matrix.

See also