34template <
typename Po
int,
typename Box>
46 [[nodiscard]]
bool hits(Point p)
const
57 [[nodiscard]]
static bool test(
const std::optional<Box>&
clip,
58 const std::optional<Box>&
bounds,
const std::function<
bool(Point)>&
contains, Point p)
HitRegion< double, AABB1D > HitRegion1D
HitRegion< glm::vec3, AABB3D > HitRegion3D
HitRegion< glm::vec2, AABB2D > HitRegion2D
std::function< bool(double)> contains
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< AABB1D > clip
std::optional< AABB1D > bounds
bool hits(Point p) const
Whether a point hits this region.
A region a point can hit: fast reject bounds, an authoritative containment test, and an optional clip...