Matrix4.compose constructor

Matrix4.compose(Vector3 translation, Quaternion rotation, Vector3 scale)

Constructs Matrix4 from translation, rotation and scale.

Implementation

factory Matrix4.compose(
        Vector3 translation, Quaternion rotation, Vector3 scale) =>
    new Matrix4.zero()
      ..setFromTranslationRotationScale(translation, rotation, scale);