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

◆ test_element()

bool MayaFlux::Portal::Forma::Layer::test_element ( const Element el,
glm::vec2  ndc 
)
staticprivatenoexcept

Definition at line 219 of file Layer.cpp.

220{
221 if (!el.interactive || !el.visible)
222 return false;
223 if (el.bounds_hint && !el.bounds_hint->contains(ndc))
224 return false;
225 if (el.contains)
226 return el.contains(ndc);
227 return el.bounds_hint.has_value();
228}

Referenced by hit_test(), and hit_test_all().

+ Here is the caller graph for this function: