How to rotate a plane in 3D around arbitrary point ?
1 回表示 (過去 30 日間)
古いコメントを表示
Hi,
I want to a rotate a plane in 3D around arbitrary point. Given is the normal vector n of the plane, a point on the plane p and a point t. The plane should be rotated around the point t.
How can I generated the new normal vector and the new point in the plane?
Anin
2 件のコメント
採用された回答
David Legland
2013 年 3 月 20 日
Hi,
Maybe you can decompose the procedure in two steps. First you apply the linear part of the transform to the normal vector of the plane, so you get the normal of the transformed plane.
Then you compute the position of the transformed point P. You first need to translate by -T, then you apply the rotation matrix, and you translate back by +T.
Once you have transformed normal vector and transformed plane origin, this should be enough for reprenting the transformed plane.
2 件のコメント
David Legland
2013 年 3 月 20 日
you don't have to translate the vector, this will not make sense. You just need to apply the 3-by-3 rotation matrix to the vector.
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Environment and Clutter についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!