Quaternion.fromRotation constructor

Quaternion.fromRotation(Matrix3 rotationMatrix)

Constructs a quaternion from a rotation matrix rotationMatrix.

Implementation

factory Quaternion.fromRotation(Matrix3 rotationMatrix) =>
    new Quaternion._()..setFromRotation(rotationMatrix);