Matrix4.diagonal3Values constructor

Matrix4.diagonal3Values(double x, double y, double z)

Scale matrix.

Implementation

factory Matrix4.diagonal3Values(double x, double y, double z) =>
    new Matrix4.zero()
      .._m4storage[15] = 1.0
      .._m4storage[10] = z
      .._m4storage[5] = y
      .._m4storage[0] = x;