Quaternion.fromTwoVectors constructor

Quaternion.fromTwoVectors(Vector3 a, Vector3 b)

Constructs a quaternion to be the rotation that rotates vector a to b.

Implementation

factory Quaternion.fromTwoVectors(Vector3 a, Vector3 b) =>
    new Quaternion._()..setFromTwoVectors(a, b);