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 26 of file Windowing.cpp.

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

References MayaFlux::Kinesis::to_ndc().

+ Here is the call graph for this function: