Matrix4.translation constructor

Matrix4.translation(Vector3 translation)

Translation matrix.

Implementation

factory Matrix4.translation(Vector3 translation) => new Matrix4.zero()
  ..setIdentity()
  ..setTranslation(translation);