MayaFlux 1.0.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 295 of file Layer.cpp.

296{
297 if (!el.interactive || !el.visible)
298 return false;
299 if (el.clip && !el.clip->contains(ndc))
300 return false;
301 if (el.bounds_hint && !el.bounds_hint->contains(ndc))
302 return false;
303 if (el.contains)
304 return el.contains(ndc);
305 return el.bounds_hint.has_value();
306}

Referenced by hit_test(), and hit_test_all().

+ Here is the caller graph for this function: