Compose sets this matrix to a transformation matrix for the specified position, rotation specified by the quaternion and scale. Returns pointer to this updated matrix.
(position *Vector3, quaternion *Quaternion, scale *Vector3)
| 612 | // rotation specified by the quaternion and scale. |
| 613 | // Returns pointer to this updated matrix. |
| 614 | func (m *Matrix4) Compose(position *Vector3, quaternion *Quaternion, scale *Vector3) *Matrix4 { |
| 615 | |
| 616 | m.MakeRotationFromQuaternion(quaternion) |
| 617 | m.Scale(scale) |
| 618 | m.SetPosition(position) |
| 619 | return m |
| 620 | } |
| 621 | |
| 622 | // Decompose updates the position vector, quaternion and scale from this transformation matrix. |
| 623 | // Returns pointer to this unchanged matrix. |
no test coverage detected