scale(x, y = x) {
    // if ( arguments.length < 2 || typeof y === "undefined" ) {
    //  y = x;
    // }

    this.multiply([
      [x, 0, 0],
      [0, y, 0],
      [0, 0, 1],
    ]);
    return this;
  }
/**
   * Scales the matrix along x and y axis.
   * @param {Number} x The value to scale the matrix with along the x direction
   * @param {Number} [y=x] The value to scale the matrix with along the y direction.
   */
Scales the matrix along x and y axis.
@param {Number} x The value to scale the matrix with along the x direction
@param {Number} [y=x] The value to scale the matrix with along the y direction.
Scales the matrix along x and y axis . @param { Number } x The value to scale the matrix with along the x direction @param { Number } [ y = x ] The value to scale the matrix with along the y direction .
scale(x, y = x) {
    this.multiply([
      [x, 0, 0],
      [0, y, 0],
      [0, 0, 1],
    ]);
    return this;
  }
scale ( x , y = x ) { this . multiply ( [ [ x , 0 , 0 ] , [ 0 , y , 0 ] , [ 0 , 0 , 1 ] , ] ) ; return this ; }
Scales the matrix along x and y axis.
Scales the matrix along x and y axis .
// if ( arguments.length < 2 || typeof y === "undefined" ) { //  y = x; // }