scale method

Matrix3 scale(
  1. double s
)

Multiplies every component of the matrix by the scalar value s.

Implementation

Matrix3 scale(double s) {
  final te = storage;

  te[0] *= s;
  te[3] *= s;
  te[6] *= s;
  te[1] *= s;
  te[4] *= s;
  te[7] *= s;
  te[2] *= s;
  te[5] *= s;
  te[8] *= s;

  return this;
}