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

Method div

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

* Divide this vector values by the passed value * @param n - the value to divide the vector by * @returns Reference to this object for method chaining

(n: number)

Source from the content-addressed store, hash-verified

118 * @returns Reference to this object for method chaining
119 */
120 div(n: number) {
121 return this.set(this.x / n, this.y / n, this.z / n);
122 }
123
124 /**
125 * Update this vector values to absolute values

Callers 2

normalizeMethod · 0.95
pixelToTileCoordsMethod · 0.45

Calls 1

setMethod · 0.95

Tested by

no test coverage detected