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

◆ hit_test() [1/2]

std::optional< uint32_t > MayaFlux::Portal::Forma::Layer::hit_test ( double  px,
double  py,
uint32_t  win_w,
uint32_t  win_h 
) const

hit_test with pixel-space input, converted to NDC internally.

Parameters
pxCursor x in pixels (top-left origin).
pyCursor y in pixels (top-left origin).
win_wWindow width in pixels.
win_hWindow height in pixels.

Definition at line 189 of file Layer.cpp.

191{
192 return hit_test(to_ndc(px, py, win_w, win_h));
193}
uint32_t py
uint32_t px
static glm::vec2 to_ndc(double px, double py, uint32_t win_w, uint32_t win_h) noexcept
Definition Layer.cpp:289
std::optional< uint32_t > hit_test(glm::vec2 ndc) const
Return the topmost interactive, visible element containing ndc.
Definition Layer.cpp:170

References hit_test(), px, py, and to_ndc().

+ Here is the call graph for this function: