从中心旋转圆圈

时间:2015-06-18 15:05:37

标签: math

我试图找到一个给定其中心的圆的旋转。圆圈需要垂直于通过原点的矢量, illustration。 对于最初基于XY平面的圆,我想找到滚动,俯仰和偏航以将其转换为中心位置。有任何想法吗?在ue4中这样做,所以我不需要代码,只需要整体流程。

1 个答案:

答案 0 :(得分:0)

你想要的不是你的"滚动,俯仰,偏航"系统,但球形极坐标旋转。在坐标轴的参考系中而不是圆的参考系中更容易思考。

图片说明: enter image description here

与轴的距离:

enter image description here

坐标:

enter image description here; enter image description here; enter image description here

获得角度:

enter image description here; enter image description here

步骤:

  1. 通过enter image description here
  2. 在正Z方向上平移圆圈
  3. enter image description here
  4. 围绕Y轴(沿顺时针方向顺时针方向)旋转
  5. 通过enter image description here
  6. 围绕Z轴(与上述类似的意义)旋转

    所需的轮换矩阵:https://en.wikipedia.org/wiki/Rotation_matrix#In_three_dimensions