linearly v0.32.0Docs


linearly v0.32.0 / quat / fromMat4

Function: fromMat4()

fromMat4(mat): quat

Creates a quaternion from the given 4x4 affine matrix. The translation portion of the matrix is ignored. Same as mat4. Alias for mat4.getRotation.

Parameters

mat: mat4

Returns

quat

Defined in

src/quat.ts:395open in new window