Applying 3D Rotation Matrix
조회 수: 9 (최근 30일)
이전 댓글 표시
I have 2 sets of 3D axes in Matlab. I have a list of points in the first set of 3D axes that I want to apply a rotation matrix to in order to convert them to the same location in the second set of axes. I am a bit rusty with applying rotation matrices, any help is appreciated.
댓글 수: 2
James Tursa
2018년 12월 13일
편집: James Tursa
2018년 12월 13일
You need to form the direction cosine (rotation) matrix that goes from one coordinate frame to the other coordinate frame. You can get the elements of this matrix with the dot products of the coordinate axes that you have. How are these coordinate axes stored?
채택된 답변
James Tursa
2018년 12월 13일
편집: James Tursa
2018년 12월 13일
You can use this FEX submission by Matt J with your coordinate axes as the inputs to get the rotation matrix R:
Then just multiply your points with that rotation matrix R.
댓글 수: 2
James Tursa
2018년 12월 14일
Yes. Just give it the three coordinate axes directions in the two sets as the inputs to get the rotation matrix R as the output. Then just multiply all of your other points by R.
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Interactions, Camera Views, and Lighting에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!