Point#copyTo()

copyTo(dest) → {object} Copies the x and y properties from this Point to any given object. Parameters Name Type Description dest any The object to copy to. Returns object - The dest object. Source code: geom/Point.js (Line 238)

Point#copyFrom()

copyFrom(source) → {Phaser.Point} Copies the x and y properties from any given object to this Point. Parameters Name Type Description source any The object to copy from. Returns Phaser.Point - This Point object. Source code: geom/Point.js (Line 43)

Point#clone()

clone(output) → {Phaser.Point} Creates a copy of the given Point. Parameters Name Type Argument Description output Phaser.Point <optional> Optional Point object. If given the values will be set into this object, otherwise a brand new Point object will be created and returned. Returns Phaser.Point - The new Point object. Source code: geom/Point.js (Line 216)

Point#clampY()

clampY(min, max) → {Phaser.Point} Clamps the y value of this Point to be between the given min and max Parameters Name Type Description min number The minimum value to clamp this Point to. max number The maximum value to clamp this Point to. Returns Phaser.Point - This Point object. Source code: geom/Point.js (Line 185)

Point#clampX()

clampX(min, max) → {Phaser.Point} Clamps the x value of this Point to be between the given min and max. Parameters Name Type Description min number The minimum value to clamp this Point to. max number The maximum value to clamp this Point to. Returns Phaser.Point - This Point object. Source code: geom/Point.js (Line 170)

Point#clamp()

clamp(min, max) → {Phaser.Point} Clamps this Point object values to be between the given min and max. Parameters Name Type Description min number The minimum value to clamp this Point to. max number The maximum value to clamp this Point to. Returns Phaser.Point - This Point object. Source code: geom/Point.js (Line 200)

Point#ceil()

ceil() → {Phaser.Point} Math.ceil() both the x and y properties of this Point. Returns Phaser.Point - This Point object. Source code: geom/Point.js (Line 463)

Point#angle()

angle(a, asDegrees) → {number} Returns the angle between this Point object and another object with public x and y properties. Parameters Name Type Argument Default Description a Phaser.Point | any The object to get the angle from this Point to. asDegrees boolean <optional> false Is the given angle in radians (false) or degrees (true)? Returns number - The angle between the two objects. Source code: geom/Point.js (Line 281)

Point#add()

add(x, y) → {Phaser.Point} Adds the given x and y values to this Point. Parameters Name Type Description x number The value to add to Point.x. y number The value to add to Point.y. Returns Phaser.Point - This Point object. Useful for chaining method calls. Source code: geom/Point.js (Line 106)

PluginManager#update()

update() Update is called after all the core subsystems (Input, Tweens, Sound, etc) and the State have updated, but before the render.It only calls plugins who have active=true. Source code: core/PluginManager.js (Line 198)