-
4x4 matrix
2x3 matrix
-
Same as project, but slightly faster and more convenient for the most common use case of projecting a 3D input point (assumes w=1
for its homogeneous coordinate, i.e. [x,y,z,1]
). Returns undefined
if the computed perspective divisor is zero (and would cause in NaN
results).
-
4x4 matrix
2x3 matrix
-
Reverse operation of project3. If invert
is true (default: false), both mvp
and view
matrices will be inverted first (non-destructively), else they're both assumed to be inverted already.
-
4x4 matrix
2x3 matrix
-
Generated using TypeDoc
Transforms given point
p
(4D, homogeneous coordinates) with 4x4 matrixmvp
, applies perspective divide and then transforms XY components with 2x3 matrixview
matrix. Returns 3D vector. The result Z component can be used for depth sorting.