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

◆ to_window()

glm::vec2 MayaFlux::Kinesis::to_window ( const glm::vec3 &  ndc,
uint32_t  width,
uint32_t  height 
)
inline

Convert NDC to window pixel coordinates.

Parameters
ndcNDC position (z ignored)
widthWindow width in pixels
heightWindow height in pixels
Returns
Window coordinates (top-left origin, +Y down)

Definition at line 153 of file ViewTransform.hpp.

156{
157 return {
158 (ndc.x + 1.0F) * 0.5F * static_cast<float>(width),
159 (1.0F - ndc.y) * 0.5F * static_cast<float>(height)
160 };
161}
uint32_t width

References width.

Referenced by MayaFlux::window_coords(), MayaFlux::window_coords(), MayaFlux::window_coords(), and MayaFlux::window_coords().

+ Here is the caller graph for this function: