scaling function

List<num> scaling(
  1. num sx,
  2. num sy
)

Creates a 2D scaling matrix sx amount to scale in x sy amount to scale in y

Implementation

List<num> scaling(num sx, num sy) {
  return [
    sx, 0, 0,
    0, sy, 0,
    0, 0, 1,
  ];
}