Quaternion to Angle and Axis
Converts a quaternion to an axis/angle representation.
Library
MATLAB Command Line
Click to copy the following command line to the clipboard. Then paste it in the MATLAB Command Window:
qc_open_library('quarc_library/Math Operations/Quaternions')Description
The Quaternion to Angle and Axis block converts a quaternion to an axis/angle representation. The angle will be in radians. The axis will be a unit vector.
The block assumes the input is a unit quaternion in order to reduce its computation time, particularly since most of the Quaternion blocks deal with unit quaternions. To normalize a quaternion in order to get a unit quaternion, use the Normalize block, which can normalize vectors or quaternions.
Input Ports
q
The input is a unit quaternion.
Output Ports
ang
This output is the angle of rotation about the axis, in radians.
vec
This output is the axis of rotation as a 3-vector.
Data Type Support
This block accepts inputs of type double. The block output is
of type double.
Parameters and Dialog Box
The Quaternion to Angle and Axis block has no parameters.
Targets
|
Target Name |
Compatible* |
Model Referencing |
Comments |
|---|---|---|---|
|
Yes |
Yes |
||
|
Yes |
Yes |
||
|
Yes |
Yes |
||
|
Yes |
Yes |
||
|
Yes |
Yes |
||
|
Yes |
Yes |
||
|
Yes |
Yes |
||
|
Yes |
Yes |
||
|
Yes |
Yes |
||
|
Yes |
Yes |
||
|
Yes |
Yes |
||
|
Yes |
Yes |
||
|
Yes |
Yes |
||
|
Yes |
Yes |
Last fully supported in QUARC 2018. |
|
|
Rapid Simulation (RSIM) Target |
Yes |
Yes |
|
|
S-Function Target |
No |
N/A |
Old technology. Use model referencing instead. |
|
Normal simulation |
Yes |
Yes |
Copyright ©2025 Quanser Inc. This page was generated 2025-06-17. "
Submit feedback to Quanser about this page.
Link to this page.