Whether a point hits this region.
47 {
49 }
std::function< bool(Point)> contains
Authoritative containment test.
static bool test(const std::optional< Box > &clip, const std::optional< Box > &bounds, const std::function< bool(Point)> &contains, Point p)
hits() over three parts held elsewhere, without copying them.
std::optional< Box > clip
Region outside which nothing hits, regardless of the other parts.
std::optional< Box > bounds
Fast reject box; must circumscribe contains when both are set.
A region a point can hit: fast reject bounds, an authoritative containment test, and an optional clip...