scale method

Mat33 scale(
  1. Mat33 m,
  2. double s
)

Scale matrix m by s and replace this matrix

Implementation

Mat33 scale(Mat33  m, double s ) {
  List<double> te = elements, tm = m.elements;
  te[0] = tm[0] * s; te[1] = tm[1] * s; te[2] = tm[2] * s;
  te[3] = tm[3] * s; te[4] = tm[4] * s; te[5] = tm[5] * s;
  te[6] = tm[6] * s; te[7] = tm[7] * s; te[8] = tm[8] * s;
  return this;
}