MayaFlux 0.4.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 136 of file Layer.cpp.

138{
139 return hit_test(to_ndc(px, py, win_w, win_h));
140}
static glm::vec2 to_ndc(double px, double py, uint32_t win_w, uint32_t win_h) noexcept
Definition Layer.cpp:213
std::optional< uint32_t > hit_test(glm::vec2 ndc) const
Return the topmost interactive, visible element containing ndc.
Definition Layer.cpp:117

References hit_test(), and to_ndc().

+ Here is the call graph for this function: