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

◆ to_ndc()

glm::vec2 MayaFlux::Portal::Forma::Layer::to_ndc ( double  px,
double  py,
uint32_t  win_w,
uint32_t  win_h 
)
staticprivatenoexcept

Definition at line 289 of file Layer.cpp.

290{
291 auto ndc3 = Kinesis::to_ndc(px, py, w, h);
292 return { ndc3.x, ndc3.y };
293}
uint32_t h
Definition InkPress.cpp:29
uint32_t py
uint32_t px
glm::vec3 to_ndc(double window_x, double window_y, uint32_t width, uint32_t height)
Convert window pixel coordinates to NDC.

References h, px, py, and MayaFlux::Kinesis::to_ndc().

Referenced by hit_test(), and hit_test_all().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: