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)
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)
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)
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)
getMagnitude() → {number} Calculates the length of the Point object. Returns number - The length of the Point. Source code: geom/Point.js (Line 321)
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)
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)
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)
multiply(x, y) → {Phaser.Point} Multiplies Point.x and Point.y by the given x and y values. Sometimes known as Scale. Parameters Name Type Description x number The value to multiply Point.x by. y number The value to multiply Point.x by. Returns Phaser.Point - This Point object. Useful for chaining method calls. Source code: geom/Point.js (Line 138)
normalize() → {Phaser.Point} Alters the Point object so that its length is 1, but it retains the same direction. Returns Phaser.Point - This Point object. Source code: geom/Point.js (Line 358)
Page 11488 of 11844