MCPcopy Create free account
hub / github.com/KilledByAPixel/LittleJS / getMirrorSign

Method getMirrorSign

src/engineObject.js:456–456  ·  view source on GitHub ↗

Get the direction of the mirror * @return {number} -1 if this.mirror is true, or 1 if not mirrored

()

Source from the content-addressed store, hash-verified

454 /** Get the direction of the mirror
455 * @return {number} -1 if this.mirror is true, or 1 if not mirrored */
456 getMirrorSign() { return this.mirror ? -1 : 1; }
457
458 /** Attaches a child to this with a local transform, returns child for chaining
459 * @param {EngineObject} child

Callers 3

updateTransformsMethod · 0.80
updateMethod · 0.80
updateMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected