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

214{
215 auto ndc3 = Kinesis::to_ndc(px, py, w, h);
216 return { ndc3.x, ndc3.y };
217}
uint32_t h
Definition InkPress.cpp:28
glm::vec3 to_ndc(double window_x, double window_y, uint32_t width, uint32_t height)
Convert window pixel coordinates to NDC.

References h, 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: