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

◆ normalized_size_to_pixels() [4/4]

MAYAFLUX_API glm::uvec2 MayaFlux::normalized_size_to_pixels ( const Kinesis::AABB2D region,
uint32_t  window_width,
uint32_t  window_height 
)

Convert an NDC AABB's extent to integer pixel dimensions.

Equivalent to ndc_size_to_pixels(region.max - region.min, ...).

Parameters
regionNDC axis-aligned bounding box.
window_widthWindow width in pixels.
window_heightWindow height in pixels.
Returns
Integer pixel dimensions of the region's extent.

Definition at line 110 of file Windowing.cpp.

112{
113 return Kinesis::ndc_size_to_pixels(region, window_width, window_height);
114}

References MayaFlux::Kinesis::ndc_size_to_pixels().

+ Here is the call graph for this function: