Matrix4.diagonal3Values constructor

Matrix4.diagonal3Values(
  1. double x,
  2. double y,
  3. double z
)

Scale matrix.

Implementation

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