【问题标题】:3d rotation about arbitrary axis from 3D math primer for graphics图形 3D 数学入门中关于任意轴的 3d 旋转
【发布时间】:2016-08-19 07:23:04
【问题描述】:

这些步骤是将向量 v 围绕向量 n 旋转角度 theta 以使 v 落在 v' 处,有人可以详细说明他是如何获得 v' 的垂直分量的,谢谢

【问题讨论】:

    标签: math graphics 3d


    【解决方案1】:

    如果我们在 2d 中进行旋转,那么您有一个旋转矩阵

    R = ( cos theta       -sin theta )
        ( sin theta        cos theta )
    

    向量v的旋转是Rv。使用 i, j 作为我们的两个基向量旋转 x i + y 的结果em> j

    (x cos theta - y sin theta) i + (x sin theta + y sin theta) j

    特别是一个向量沿ix i的旋转是

    (x cos theta) i + (x sin theta) j

    现在在 3D 情况下,您可以将其视为基本上由 v_perp 和 w 跨越的平面中的旋转。令iv_perp方向的单位长度向量,jw方向的单位长度向量方向。令 xv_perp 的长度,所以 v_perp = x i .这个的旋转是

    (x cos theta) i + (x sin theta) j = cos theta v_perp + sin theta w

    因为 w 已设置为长度为 x 的向量。这是给出的公式。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-07-23
      • 1970-01-01
      • 2020-10-10
      相关资源
      最近更新 更多