Documentation / @ripl/3d / mat4TransformDirectionInverse
Function: mat4TransformDirectionInverse() ​
mat4TransformDirectionInverse(
m,v):Vector3
Defined in: 3d/src/math/matrix.ts:367
Transforms a direction vector by the transposed upper-3×3 of a 4×4 matrix, ignoring translation. For a rigid transform (rotation plus translation, such as a view matrix) the transposed rotation is its inverse, so this undoes mat4TransformDirection — use it to carry a direction from view space back into world space.
Parameters ​
| Parameter | Type |
|---|---|
m | Matrix4 |
v | Vector3 |