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

Method to2d

packages/melonjs/src/math/observableVector3d.ts:212–214  ·  view source on GitHub ↗

* Convert this vector into 2d coordinate space * @returns Reference to this object for method chaining

()

Source from the content-addressed store, hash-verified

210 * @returns Reference to this object for method chaining
211 */
212 to2d() {
213 return this.set(this.y + this.x / 2, this.y - this.x / 2, this.z);
214 }
215
216 /**
217 * Divide this vector values by the passed value

Callers

nothing calls this directly

Calls 1

setMethod · 0.95

Tested by

no test coverage detected