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

Method toIso

packages/melonjs/src/math/observableVector2d.ts:174–176  ·  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

172 * @returns Reference to this object for method chaining
173 */
174 toIso() {
175 return this.set(this.x - this.y, (this.x + this.y) * 0.5);
176 }
177
178 /**
179 * Convert this vector into 2d coordinate space

Callers

nothing calls this directly

Calls 1

setMethod · 0.95

Tested by

no test coverage detected