linearly v0.32.0Docs


linearly v0.32.0 / mat4 / getTranslation

Function: getTranslation()

getTranslation(mat): vec3

Returns the translation vector component of a transformation matrix. If a matrix is built with fromRotationTranslation, the returned vector will be the same as the translation vector originally supplied.

Parameters

mat: mat4

Returns

vec3

Defined in

src/mat4.ts:748open in new window