rotate vector around center.

7 visualizaciones (últimos 30 días)
Liza Marie de Wit
Liza Marie de Wit el 12 de Sept. de 2016
Comentada: KSSV el 14 de Sept. de 2016
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

Respuestas (1)

KSSV
KSSV el 12 de Sept. de 2016
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 comentarios
Liza Marie de Wit
Liza Marie de Wit el 12 de Sept. de 2016
Thank you. This would work for a linear vector. But it's actually about a non linear vector, see attachment. I am sorry for the non clarity!
KSSV
KSSV el 14 de Sept. de 2016
what do you mean by a non linear vector?

Iniciar sesión para comentar.

Categorías

Más información sobre Interactions, Camera Views, and Lighting en Help Center y File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by