Quaternion.fromTwoVectors constructor Null safety
Constructs a quaternion to be the rotation that rotates vector a
to b
.
Implementation
factory Quaternion.fromTwoVectors(Vector3 a, Vector3 b) =>
Quaternion._()..setFromTwoVectors(a, b);
Constructs a quaternion to be the rotation that rotates vector a
to b
.
factory Quaternion.fromTwoVectors(Vector3 a, Vector3 b) =>
Quaternion._()..setFromTwoVectors(a, b);