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

◆ normalize_coords() [1/2]

MAYAFLUX_API glm::vec3 MayaFlux::normalize_coords ( double  window_x,
double  window_y,
const std::shared_ptr< Core::Window > &  window 
)

Convert window pixel coordinates to NDC using window state.

Parameters
window_xX coordinate in window space
window_yY coordinate in window space
windowWindow to extract dimensions from
Returns
NDC coordinates as vec3 (x, y, 0.0)

Definition at line 25 of file Windowing.cpp.

27{
28 const auto& s = window->get_state();
29 return Kinesis::to_ndc(window_x, window_y, s.current_width, s.current_height);
30}

References MayaFlux::Kinesis::to_ndc().

+ Here is the call graph for this function: