How to represent a 4x4 matrix rotation?

前端 未结 3 1523
伪装坚强ぢ
伪装坚强ぢ 2021-02-05 17:51

Given the following definitions for x,y,z rotation matrices, how do I represent this as one complete matrix? Simply multiply x, y, & matrices?

X Rotation:

<
3条回答
  •  一生所求
    2021-02-05 18:19

    Yes, multiplying the three matrices in turn will compose them.

    EDIT:

    The order that you apply multiplication to the matrices will determine the order the rotations will be applied to the point.

    P × (X × Y × Z)     Rotations in X, Y, then Z will be performed
    P × (Y × X × Z)     Rotations in Y, X, then Z will be performed
    P × (Z × X × Y)     Rotations in Z, X, then Y will be performed
    

提交回复
热议问题