Mat4:setOrientation

Edit

Sets the orientation of the matrix, without changing its position or scale.



Arguments

NameTypeDescription
anglenumber The number of radians the matrix should be rotated around its rotation axis.
axnumber The x component of the axis of rotation.
aynumber The y component of the axis of rotation.
aznumber The z component of the axis of rotation.

Returns

NameTypeDescription
selfMat4 The modified input matrix.

Arguments

NameTypeDescription
orientationquaternion The new orientation.

Returns

NameTypeDescription
selfMat4 The modified input matrix.

See also