|
MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
|
|
inline |
Convert an NDC-space size (extent) to integer pixel dimensions.
NDC spans 2.0 across each axis. An NDC size of (1.8, 0.1) on a 1280x720 window resolves to (1152, 36) pixels. Both components are clamped to at least 1 pixel so degenerate textures and zero-extent images are avoided.
Size counterpart to to_window(), which converts an NDC position. Use to_window for positions, ndc_size_to_pixels for extents (text image budgets, capture target dimensions, offscreen image sizes matched to an on-screen NDC region).
| ndc_size | NDC extent (each component in [0, 2]). |
| width | Window width in pixels. |
| height | Window height in pixels. |
Definition at line 201 of file ViewTransform.hpp.
References width.