init(from:to:)
Creates a new quaternion with an action that’s a rotation between two vectors.
Declaration
init(from: SIMD3<Float>, to: SIMD3<Float>)Parameters
- from:
A normalized three-element vector that specifies the start of the rotation.
- to:
A normalized three-element vector that specifies the end of the rotation.