initial input {@link Number} x
initial input {@link Number} y
Adds scalar value to this point
thisArg
return a cloned instance of the point
Computes the distance between this point and another point.
The point to compute the distance with.
The distance between the 2 points
Divides this point by a value
thisArg
Returns true if this point is equal to another one
Returns true if this point is greater another one
Returns true if this point is greater than or equal to another one
Returns true if this point is less than another one
Returns true if this point is less than or equal to another one
Negate this point
thisArg
Rotates the point around the specified pivot From http://stackoverflow.com/questions/4465931/rotate-rectangle-around-a-point
degress to rotate around the pivot.
. A new point representing the point rotated around the specified pivot
Scales this point by input value
thisArg
Sets x of this point
Sets x/y of this point
Sets y of this point
Computes the squared distance between this point and another point. Useful for optimizing things like comparing distances.
The point to compute the squared distance with.
The squared distance between the 2 points
Swaps x/y of this point and another point
Returns string representation of this point
Default Point constructor by input parameters