Table of Contents
Quaternion from Angle and Axis
Creates a quaternion from 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 from Angle and Axis block creates a quaternion from an axis/angle representation. The angle must be in radians. The axis should be a unit vector.
Input Ports
ang
This input is the angle of rotation about the given axis, in radians.
vec
This input is the axis of rotation as a 3-vector.
Output Ports
y
The output is the quaternion representing a rotation of ang about the axis vec.
Data Type Support
This block accepts inputs of type double
. The block output is
of type double
.
Parameters and Dialog Box
The Quaternion from 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 ©2024 Quanser Inc. This page was generated 2024-10-17. Submit feedback to Quanser about this page.
Link to this page.