rotate vector around center.
Mostra commenti meno recenti
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
Risposte (1)
KSSV
il 12 Set 2016
1 voto
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 Commenti
Liza Marie de Wit
il 12 Set 2016
KSSV
il 14 Set 2016
what do you mean by a non linear vector?
Categorie
Scopri di più su Interactions, Camera Views, and Lighting in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!