linearly v0.32.0 • Docs
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