quatrotate
Rotate vector by quaternion
Syntax
Description
calculates the resulting vector following the passive rotation of initial vector
n = quatrotate(q,r)r by quaternion q and returns a final vector
n. If quaternions are not yet normalized, the function normalizes
them.
Aerospace Toolbox uses quaternions that are defined using the scalar-first convention. This function normalizes all quaternion inputs.
Examples
Input Arguments
Output Arguments
More About
References
[1] Stevens, Brian L., Frank L. Lewis. Aircraft Control and Simulation, 2nd Edition. Hoboken, NJ: John Wiley & Sons, 2003.
[2] Diebel, James. "Representing Attitude: Euler Angles, Unit Quaternions, and Rotation Vectors." Stanford University, Stanford, California, 2006.
Version History
Introduced in R2006b