MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ hits()

template<typename Point, typename Box>
bool MayaFlux::Kinesis::HitRegion< Point, Box >::hits ( Point p) const
inlinenodiscard

Whether a point hits this region.

Definition at line 46 of file HitRegion.hpp.

47 {
48 return test(clip, bounds, contains, p);
49 }
std::function< bool(Point)> contains
Authoritative containment test.
Definition HitRegion.hpp:40
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.
Definition HitRegion.hpp:57
std::optional< Box > clip
Region outside which nothing hits, regardless of the other parts.
Definition HitRegion.hpp:43
std::optional< Box > bounds
Fast reject box; must circumscribe contains when both are set.
Definition HitRegion.hpp:37
A region a point can hit: fast reject bounds, an authoritative containment test, and an optional clip...
Definition HitRegion.hpp:35