How to find the rotation matrix between two coordinate systems?

后端 未结 4 375
Happy的楠姐
Happy的楠姐 2021-01-30 17:52

There are two coordinate systems. We know the 3D coordinates of the origin and the 3D vectors of the axes of the second coordinate system with respect to the first coordinates s

4条回答
  •  梦毁少年i
    2021-01-30 18:16

    Let A be the 4x4 matrix defining the relationship between the two coordinate systems.

    Then the angle between the two is:

    θ = arcos(trace(A)/2.0)

提交回复
热议问题