Skip to content

format

typescript
Matrix4x4.FromRotate(rot)

class: Matrix4x4

description

Create a rotation matrix.

parameter

param_nametypedescription
rotQuaternionThe rotation to apply.

return

typedescription
Matrix4x4A new matrix.

code example

typescript
let rot = new Quaternion(0,0,0,1);

Matrix4x4.FromTRS(rot);