Mat4:rotate
EditRotates the matrix using a quaternion or an angle/axis rotation.
Arguments
Name | Type | Description |
q | Quat | The rotation to apply to the matrix. |
Returns
Name | Type | Description |
self | Mat4 | The rotated matrix. |
Arguments
Name | Type | Default | Description |
angle | number | The angle component of the angle/axis rotation (radians). | |
ax | number | 0 | The x component of the axis of rotation. |
ay | number | 1 | The y component of the axis of rotation. |
az | number | 0 | The z component of the axis of rotation. |
Returns
Name | Type | Description |
self | Mat4 | The rotated matrix. |