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

Method toIso

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

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

()

Source from the content-addressed store, hash-verified

101 * @returns Reference to this object for method chaining
102 */
103 toIso() {
104 return this.set(this.x - this.y, (this.x + this.y) * 0.5, this.z);
105 }
106
107 /**
108 * Convert this vector into 2d coordinate space

Callers 8

parseTMXShapesMethod · 0.45
polygon.spec.jsFile · 0.45
vector2d.spec.tsFile · 0.45
vector3d.spec.tsFile · 0.45
constructorMethod · 0.45
constructorMethod · 0.45

Calls 1

setMethod · 0.95

Tested by

no test coverage detected