linearly v0.32.0Docs


linearly v0.32.0 / quat / fromMat3

Function: fromMat3()

fromMat3(m): quat

Creates a quaternion from the given 3x3 rotation matrix.

NOTE: The resultant quaternion is not normalized, so you should be sure to renormalize the quaternion yourself where necessary.

Parameters

m: mat3

Returns

quat

Defined in

src/quat.ts:358open in new window