format
typescript
Matrix4x4.FromTR(pos, rot)class: Matrix4x4
description
Create a matrix based on translation and rotation information.
parameter
| param_name | type | description |
|---|---|---|
| pos | Vector3 | Translation. |
| rot | Quaternion | Rotation. |
return
| type | description |
|---|---|
Matrix4x4 | The new matrix. |
code example
typescript
let pos = new Vector3(1,1,1);
let rot = new Quaternion(0,0,0,1);
Matrix4x4.FromTR(pos, rot);