scale static method

Matrix4 scale(
  1. dynamic x, [
  2. double? y,
  3. double? z
])

Create a scaled matrix.

Scale by a Vector3, Vector4, or x,y,z

Implementation

static Matrix4 scale(dynamic x, [double? y, double? z]) {
  return Matrix4.identity()..scale(x, y, z);
}