Quaternion.fromRotation constructor Null safety

Quaternion.fromRotation(
  1. Matrix3 rotationMatrix
)

Constructs a quaternion from a rotation matrix rotationMatrix.

Implementation

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