Table of Contents
Vector Rotation
Rotates the input 3-vector by the given angle about an arbitrary axis.
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/Vectors')Description
The Vector Rotation block rotates the input vector about an arbitrary axis. Both the angle of rotation and the axis of rotation may be specified as a block parameter or as an external input.
Input Ports
v
The 3-vector in cartesian coordinates to be rotated.
theta
The angle in radians by which to rotate the input vector.
k
The axis of rotation as a 3-vector.
Output Ports
y
The output is the 3-vector after rotation about the specified axis.
Data Type Support
This block accepts inputs of type double
. The block output is
of type double
.
Parameters and Dialog Box
Source of angle to rotate
Determines whether the angle of rotation is specified as a dialog parameter or is provided by an external input. Select "
" to enter the angle of rotation as a dialog parameter. Select " " to get an additional input port at which the angle of rotation may be supplied.Angle to rotate (rads)
The angle through which to rotate the input vector, in radians. This parameter is only used if the Source of angle to rotate parameter is set to " ".
Source of axis of rotation
Determines whether the axis of rotation is specified as a dialog parameter or is provided by an external input. Select "
" to enter the axis of rotation as a dialog parameter. Select " " to get an additional input port at which the axis of rotation may be supplied as a 3-vector.Axis of rotation (3-vector)
A 3-vector specifying the axis of rotation about which to rotate the input vector. This parameter is only used if the Source of axis of rotation parameter is set to " ".
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.