MayaFlux 0.4.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 135 of file Element.hpp.

136 {
137 contains = Kinesis::circular_bounds(center, radius);
138 return *this;
139 }
std::function< bool(glm::vec2)> circular_bounds(glm::vec2 center, float radius) noexcept
Containment test for a circle.
Definition Bounds.hpp:208
std::function< bool(glm::vec2)> contains
Authoritative containment test in NDC space.
Definition Element.hpp:68