Point.sitsOn()

The Point.sitsOn() method returns true if this point has the exact same coordinates as the point you pass to it.

Signature

Javascript
bool point.sitsOn(Point check)

Example

Notes

This method uses strict comparison. So points with an X-coordinate of 10 and 10.0001 are considered to be different.

To check if two points have the same coordinates rounded to the nearest millimeter, use Point.sitsRoughlyOn() instead.