rotVecAroundArbAxis​(unitVec2Rotate,rot​ationAxisUnitVec,th​eta)

Vectorized 3-D rotation of any vector around an arbitrary axis

您现在正在关注此提交

This routine will allow a 3-D unit vector to be rotated around a 3-D axis defined by the user. This is performed by first rotating the unit vector around it's own cartesian axis (in this case we will rotate the vector around the z-axis, [0 0 1]) corresponding to each rotation angle specified by the user. This rotated vector is then transformed around the user defined axis of rotation.
To see a demonstration, simply run the following command in your MATLAB command prompt:
>> rotVecAroundArbAxis();

引用格式

Darin Koblick (2026). rotVecAroundArbAxis(unitVec2Rotate,rotationAxisUnitVec,theta) (https://ww2.mathworks.cn/matlabcentral/fileexchange/49916-rotvecaroundarbaxis-unitvec2rotate-rotationaxisunitvec-theta), MATLAB Central File Exchange. 检索时间: .

类别

Help CenterMATLAB Answers 中查找有关 Interactions, Camera Views, and Lighting 的更多信息

一般信息

MATLAB 版本兼容性

  • 兼容任何版本

平台兼容性

  • Windows
  • macOS
  • Linux
版本 已发布 发行说明 Action
1.1.0.0

Added graph of outputs
Added an additional rotation upfront to ensure that the rotation about the z-axis is consistent.

1.0.0.0