rotate vector around center.

조회 수: 7 (최근 30일)
Liza Marie de Wit
Liza Marie de Wit 2016년 9월 12일
댓글: KSSV 2016년 9월 14일
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

답변 (1개)

KSSV
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
Liza Marie de Wit
Liza Marie de Wit 2016년 9월 12일
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 2016년 9월 14일
what do you mean by a non linear vector?

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile 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!

Translated by