mtimes, *
Syntax
Description
implements quaternion multiplication if either quatC
= A
*B
A
or
B
is a quaternion. Either A
or
B
must be a scalar.
You can use quaternion multiplication to compose rotation operators:
To compose a sequence of frame rotations, multiply the quaternions in the order of the desired sequence of rotations. For example, to apply a p quaternion followed by a q quaternion, multiply in the order pq. The rotation operator becomes , where v represents the object to rotate specified in quaternion form. * represents conjugation.
To compose a sequence of point rotations, multiply the quaternions in the reverse order of the desired sequence of rotations. For example, to apply a p quaternion followed by a q quaternion, multiply in the reverse order, qp. The rotation operator becomes .
Examples
Input Arguments
Output Arguments
Algorithms
References
[1] Kuipers, Jack B. Quaternions and Rotation Sequences: A Primer with Applications to Orbits, Aerospace, and Virtual Reality. Princeton, NJ: Princeton University Press, 2007.
Extended Capabilities
Version History
Introduced in R2023b