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

Method div

packages/melonjs/src/math/observableVector3d.ts:221–223  ·  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

219 * @returns Reference to this object for method chaining
220 */
221 div(n: number) {
222 return this.set(this.x / n, this.y / n, this.z / n);
223 }
224
225 /**
226 * Update this vector values to absolute values

Callers

nothing calls this directly

Calls 1

setMethod · 0.95

Tested by

no test coverage detected