Skip to content

format

typescript
Matrix4x4.FromTR(pos, rot)

class: Matrix4x4

description

Create a matrix based on translation and rotation information.

parameter

param_nametypedescription
posVector3Translation.
rotQuaternionRotation.

return

typedescription
Matrix4x4The new matrix.

code example

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

Matrix4x4.FromTR(pos, rot);