Skip to content

mat4TransformPoint

mat4TransformPoint(m, p): Vec3

Defined in: src/modules/math/mat4.ts:274

Transform the point p (w = 1) by m, then divide by the resulting w — so a projection matrix yields NDC directly. Points on the camera plane (w = 0) divide to ±Infinity; check w via mat4TransformVec4 first when that matters.

Mat4

Vec3

Vec3