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

◆ with_rect()

Element & MayaFlux::Portal::Forma::Element::with_rect ( glm::vec2  ndc_min,
glm::vec2  ndc_max 
)
inline

Convenience: rectangular region specified as two NDC corners.

Equivalent to with_bounds(AABB2D{min, max}).

Definition at line 135 of file Element.hpp.

136 {
137 bounds_hint = Kinesis::AABB2D { .min = ndc_min, .max = ndc_max };
138 return *this;
139 }
std::optional< Kinesis::AABB2D > bounds_hint
Optional fast-reject bounds in NDC space.
Definition Element.hpp:67

References MayaFlux::Kinesis::AABB2D::min.