MCPcopy
hub / github.com/phaserjs/phaser / getLocalPoint

Method getLocalPoint

types/phaser.d.ts:20551–20551  ·  view source on GitHub ↗

* Takes the given `x` and `y` coordinates and converts them into local space for this * Game Object, taking into account parent and local transforms, and the Display Origin. * * The returned Vector2 contains the translated point in its properties.

(x: number, y: number, point?: Phaser.Math.Vector2, camera?: Phaser.Cameras.Scene2D.Camera)

Source from the content-addressed store, hash-verified

20549 * @returns The translated point.
20550 */
20551 getLocalPoint(x: number, y: number, point?: Phaser.Math.Vector2, camera?: Phaser.Cameras.Scene2D.Camera): Phaser.Math.Vector2;
20552 /**
20553 * Gets the world position of this Game Object, factoring in any parent Containers.
20554 * @param point A Vector2, or point-like object, to store the result in.

Callers 1

BitmapText.jsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected