ndcToPoint2
ndcToPoint2(
ndc,viewport):Point2
Defined in: coordinate-spaces.ts:25
Converts a point in normalized device coordinates (NDC) to pixel coordinates.
Parameters
Section titled “Parameters”Vec2
The point in NDC, where x and y are in the range [-1, 1].
viewport
Section titled “viewport”The size of the viewport in pixels.
Returns
Section titled “Returns”The point in pixel coordinates.