坐标旋转问题

      给定任意单位轴q(q1,q2,q3)(向量),求向量p(x,y,z)(或点p)饶q旋转theta角度的变换后的新向量p'(或点p’)。
      使用旋转矩阵工具:构造旋转矩阵变换Trot,则变换后的新向量p’= p*Trot,其中,p’(x’,y’,z’,1),p(x,y,z,1)为向量p’,p的4D齐次坐标表示。

          |t*q1*q1 + c,          t*q1*q2 + s*q3,      t*q1*q3 – s*q2,       0|
Trot =  |t*xq1*q2 – s*q3,    t*q2*q2 + c,           t*q2*q3 + s*q1,      0|
          |t*q1*q3 + s*q2,     t*q2*q3 – s*q1,      t*q3*q3 + c,           0|
          |0,                         0,                         0,                          1|

    其中c=cos(theta), s=sin(theta),t=1-c.

Author: armadillo

傻傻的笨蛋,什么都不懂的Small Kids,总是在幻想,轻轻地走来,静静地站在那里,默默地看着一切,细细地思考,然后悄悄地离开……永远都不愿意留在这里……You mustn't allow yourself to be chained to fate, to be ruled by your genes. Human beings can choose the kind of life that they want to live. What's important is that you choose life... and then live.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.