MCPcopy Create free account
hub / github.com/melonjs/melonJS / scale

Method scale

packages/melonjs/src/math/vector3d.ts:86–88  ·  view source on GitHub ↗

* Multiply this vector values by the given scalar * @param x x component * @param [y] y component * @param [z] z component * @returns Reference to this object for method chaining

(x: number, y = x, z = 1)

Source from the content-addressed store, hash-verified

84 * @returns Reference to this object for method chaining
85 */
86 scale(x: number, y = x, z = 1) {
87 return this.set(this.x * x, this.y * y, this.z * z);
88 }
89
90 /**
91 * Multiply this vector values by the passed vector

Callers 3

scaleVMethod · 0.95
projectMethod · 0.95
projectNMethod · 0.95

Calls 1

setMethod · 0.95

Tested by

no test coverage detected