intersects method
Check if the point (x, y)
intersects (lies inside) the region of this Envelope
.
@param x the x-ordinate of the point
@param y the y-ordinate of the point
@return true
if the point overlaps this Envelope
Implementation
bool intersects(double x, double y) {
if (isNull()) return false;
return !(x > _maxx || x < _minx || y > _maxy || y < _miny);
}