webgl-programming-guide/common/matrix4.js
/**
   * Multiply the matrix for scaling from the right.
   * @param {Number} x The scale factor along the X axis
   * @param {Number} y The scale factor along the Y axis
   * @param {Number} z The scale factor along the Z axis
   * @return {Matrix4} this
   */
Multiply the matrix for scaling from the right.
@param {Number} x The scale factor along the X axis
@param {Number} y The scale factor along the Y axis
@param {Number} z The scale factor along the Z axis
@return {Matrix4} this
Multiply the matrix for scaling from the right . @param { Number } x The scale factor along the X axis @param { Number } y The scale factor along the Y axis @param { Number } z The scale factor along the Z axis @return { Matrix4 } this
scale(x, y, z) {
    let e = this.elements
    e[0] *= x;  e[4] *= y;  e[8]  *= z
    e[1] *= x;  e[5] *= y;  e[9]  *= z
    e[2] *= x;  e[6] *= y;  e[10] *= z
    e[3] *= x;  e[7] *= y;  e[11] *= z
    return this
  }
scale ( x , y , z ) { let e = this . elements e [ 0 ] *= x ; e [ 4 ] *= y ; e [ 8 ] *= z e [ 1 ] *= x ; e [ 5 ] *= y ; e [ 9 ] *= z e [ 2 ] *= x ; e [ 6 ] *= y ; e [ 10 ] *= z e [ 3 ] *= x ; e [ 7 ] *= y ; e [ 11 ] *= z return this }
Multiply the matrix for scaling from the right.
Multiply the matrix for scaling from the right .