setFromRotationMatrix

Sets this quaternion from the given rotation matrix m (the upper 3x3 of which must be an unscaled rotation).

Return

A reference to this quaternion.

Parameters

m

A 4x4 matrix whose upper 3x3 is a pure rotation matrix.