Creates a Point object with the given x and y coordinates. If optional round is set to true, rounds the x and y values.
The x coordinate.
The y coordinate.
Returns the result of addition of the current and the given points.
Returns a copy of the current point.
Returns the distance between the current and the given points.
number
Returns the result of division of the current point by the given number. If optional round is set to true, returns a rounded result.
Returns true if the given point has the same coordinates.
boolean
Returns the result of multiplication of the current point by the given number.
Returns a copy of the current point with rounded coordinates.
Returns the result of subtraction of the given point from the current.
Returns a string representation of the point for debugging purposes.
string