Point.project()

<static> project(a, b, out) → {Phaser.Point} Project two Points onto another Point. Parameters Name Type Argument Description a Phaser.Point The first Point object. b Phaser.Point The second Point object. out Phaser.Point <optional> Optional Point to store the value in, if not supplied a new Point object will be created. Returns Phaser.Point - The new Point object. Source code: geom/Point.js (Line 700)

Point.perp()

<static> perp(a, out) → {Phaser.Point} Return a perpendicular vector (90 degrees rotation) Parameters Name Type Argument Description a Phaser.Point The Point object. out Phaser.Point <optional> Optional Point to store the value in, if not supplied a new Point object will be created. Returns Phaser.Point - The new Point object. Source code: geom/Point.js (Line 652)

Point.parse()

<static> parse(obj, xProp, yProp) → {Phaser.Point} Parses an object for x and/or y properties and returns a new Phaser.Point with matching values.If the object doesn't contain those properties a Point with x/y of zero will be returned. Parameters Name Type Argument Default Description obj object The object to parse. xProp string <optional> 'x' The property used to set the Point.x value. yProp string <optional> 'y' The property used to set the Point.y value.

Point.normalRightHand()

<static> normalRightHand(a, out) → {Phaser.Point} Right-hand normalize (make unit length) a Point. Parameters Name Type Argument Description a Phaser.Point The Point object. out Phaser.Point <optional> Optional Point to store the value in, if not supplied a new Point object will be created. Returns Phaser.Point - The new Point object. Source code: geom/Point.js (Line 748)

Point.normalize()

<static> normalize(a, out) → {Phaser.Point} Normalize (make unit length) a Point. Parameters Name Type Argument Description a Phaser.Point The Point object. out Phaser.Point <optional> Optional Point to store the value in, if not supplied a new Point object will be created. Returns Phaser.Point - The new Point object. Source code: geom/Point.js (Line 764)

Point.negative()

<static> negative(a, out) → {Phaser.Point} Creates a negative Point. Parameters Name Type Argument Description a Phaser.Point The first Point object. out Phaser.Point <optional> Optional Point to store the value in, if not supplied a new Point object will be created. Returns Phaser.Point - The new Point object. Source code: geom/Point.js (Line 600)

Point.multiplyAdd()

<static> multiplyAdd(a, b, s, out) → {Phaser.Point} Adds two 2D Points together and multiplies the result by the given scalar. Parameters Name Type Argument Description a Phaser.Point The first Point object. b Phaser.Point The second Point object. s number The scaling value. out Phaser.Point <optional> Optional Point to store the value in, if not supplied a new Point object will be created. Returns Phaser.Point - The new Point object. Source code: geom/Poi

Point.multiply()

<static> multiply(a, b, out) → {Phaser.Point} Multiplies the coordinates of two points to create a new point. Parameters Name Type Argument Description a Phaser.Point The first Point object. b Phaser.Point The second Point object. out Phaser.Point <optional> Optional Point to store the value in, if not supplied a new Point object will be created. Returns Phaser.Point - The new Point object. Source code: geom/Point.js (Line 531)

Point.interpolate()

<static> interpolate(a, b, f, out) → {Phaser.Point} Interpolates the two given Points, based on the f value (between 0 and 1) and returns a new Point. Parameters Name Type Argument Description a Phaser.Point The first Point object. b Phaser.Point The second Point object. f number The level of interpolation between the two points. Indicates where the new point will be, along the line between pt1 and pt2. If f=1, pt1 is returned; if f=0, pt2 is returned. out Phaser.Point

Point.equals()

<static> equals(a, b) → {boolean} Determines whether the two given Point objects are equal. They are considered equal if they have the same x and y values. Parameters Name Type Description a Phaser.Point The first Point object. b Phaser.Point The second Point object. Returns boolean - A value of true if the Points are equal, otherwise false. Source code: geom/Point.js (Line 571)