rotate vector around center.
8 ビュー (過去 30 日間)
古いコメントを表示
Hi,
I have a non linear vector that I am trying to rotate with 2.8 degrees. In my case however I want to make the rotation around the center of my vector. Can you give me a tip on how to rotate around the center. I only found out how to rotate around the origin.
Vector is included in attachment.
Thank you! Liza
0 件のコメント
回答 (1 件)
KSSV
2016 年 9 月 12 日
If the center is (x,y) you first subtract (x,y) from all the coordinates, then use your rotation matrix, then add the (x,y) back to the point obtained.
2 件のコメント
参考
カテゴリ
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!