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

◆ with_circle()

Element & MayaFlux::Portal::Forma::Element::with_circle ( glm::vec2  center,
float  radius 
)
inline

Set a circular containment predicate.

bounds_hint is independent — set it separately if a cheap pre-filter is useful. For a plain circle it is often the circumscribed rect via AABB2D::from_ndc(center, glm::vec2(radius)), but that decision belongs to the caller.

Definition at line 149 of file Element.hpp.

150 {
152 return *this;
153 }
float radius
std::function< bool(glm::vec2)> circular_bounds(glm::vec2 center, float radius) noexcept
Containment test for a circle.
Definition Bounds.hpp:253
std::function< bool(glm::vec2)> contains
Authoritative containment test in NDC space.
Definition Element.hpp:77

References contains, and radius.