Skip to content

Documentation / @ripl/3d / mat4TransformDirection

Function: mat4TransformDirection() ​

mat4TransformDirection(m, v): Vector3

Defined in: 3d/src/math/matrix.ts:191

Transforms a direction vector by the upper-3×3 of a 4×4 matrix, ignoring translation.

Parameters ​

ParameterType
mMatrix4
vVector3

Returns ​

Vector3