Skip to main content

Point.sitsOn()

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

Signature​

bool point.sitsOn(Point check)

Example​

An example of the Point.sitsOn() method

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.