Skip to content

ndcToPoint2

ndcToPoint2(ndc, viewport): Point2

Defined in: coordinate-spaces.ts:25

Converts a point in normalized device coordinates (NDC) to pixel coordinates.

Vec2

The point in NDC, where x and y are in the range [-1, 1].

Size2

The size of the viewport in pixels.

Point2

The point in pixel coordinates.