Point#isZero()

isZero() → {boolean} Determine if this point is at 0,0. Returns boolean - True if this Point is 0,0, otherwise false. Source code: geom/Point.js (Line 377)

Point#invert()

invert() → {Phaser.Point} Inverts the x and y values of this Point Returns Phaser.Point - This Point object. Source code: geom/Point.js (Line 56)

Point#getMagnitudeSq()

getMagnitudeSq() → {number} Calculates the length squared of the Point object. Returns number - The length ^ 2 of the Point. Source code: geom/Point.js (Line 333)

Point#getMagnitude()

getMagnitude() → {number} Calculates the length of the Point object. Returns number - The length of the Point. Source code: geom/Point.js (Line 321)

Point#floor()

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

Point#equals()

equals(a) → {boolean} Determines whether the given objects x/y values are equal to this Point object. Parameters Name Type Description a Phaser.Point | any The object to compare with this Point. Returns boolean - A value of true if the x and y points are equal, otherwise false. Source code: geom/Point.js (Line 268)

Point#dot()

dot(a) → {number} The dot product of this and another Point object. Parameters Name Type Description a Phaser.Point The Point object to get the dot product combined with this Point. Returns number - The result. Source code: geom/Point.js (Line 389)

Point#divide()

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

Point#distance()

distance(dest, round) → {number} Returns the distance of this Point object to the given object (can be a Circle, Point or anything with x/y properties) Parameters Name Type Argument Description dest object The target object. Must have visible x and y properties that represent the center of the object. round boolean <optional> Round the distance to the nearest integer (default false). Returns number - The distance between this Point object and the destination Point object.

Point#cross()

cross(a) → {number} The cross product of this and another Point object. Parameters Name Type Description a Phaser.Point The Point object to get the cross product combined with this Point. Returns number - The result. Source code: geom/Point.js (Line 402)