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

122 {
123 bounds_hint = Kinesis::AABB2D { .min = ndc_min, .max = ndc_max };
124 return *this;
125 }
std::optional< Kinesis::AABB2D > bounds_hint
Optional fast-reject bounds in NDC space.
Definition Element.hpp:64

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