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

◆ window_coords() [2/4]

MAYAFLUX_API glm::vec2 MayaFlux::window_coords ( const glm::vec3 &  ndc_pos,
uint32_t  window_width,
uint32_t  window_height 
)

Convert NDC vec3 position to window pixel coordinates.

Parameters
ndc_posNDC position (z component ignored)
window_widthWindow width in pixels
window_heightWindow height in pixels
Returns
Window coordinates in pixels

Definition at line 54 of file Windowing.cpp.

56{
57 return window_coords(ndc_pos.x, ndc_pos.y, ndc_pos.z, window_width, window_height);
58}
glm::vec2 window_coords(double ndc_x, double ndc_y, double ndc_z, uint32_t window_width, uint32_t window_height)
Convert NDC coordinates to window pixel coordinates.
Definition Windowing.cpp:38

References window_coords().

+ Here is the call graph for this function: