scale function

List<num> scale(
  1. List<num> m,
  2. num sx,
  3. num sy
)

Multiplies by a 2D scaling matrix m the matrix to be multiplied sx amount to scale in x sy amount to scale in y

Implementation

List<num> scale(List<num> m, num sx, num sy) {
  return multiply(m, scaling(sx, sy));
}