The result of rotation matrix rotx(angle) with a coordinate does not give the desired result

조회 수: 4 (최근 30일)
Hello All
I have a point with coordinates :
x y z : 0.00 60.00 225
and want to rotating it around the global X axis at the center 0,0,225 for 5 ° and get to the new coordinates :
x' y' z' : 0.00 59.96 225.95
the above new coordinates are in global CS and not in rotated CS
but if I use the rotx(5).* oldcoords
I don't get these values.
  댓글 수: 6
farzad
farzad 2019년 11월 11일
The separation angle you found is one single rotation. The rotation I defined is around x axis. Maybe your rotation is not around x axis but another axis in space
Matt J
Matt J 2019년 11월 11일
편집: Matt J 2019년 11월 11일
Both v1 and v2 are in the y-z plane, so if the rotation was about the x-axis, then the separation of the two directions must be the rotation angle.

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

채택된 답변

Matt J
Matt J 2019년 11월 11일
Here's what my AxelRot utility gives
>> AxelRot([0.00 60.00 225 ].',+5,[1,0,0],[0 0 ,225])
ans =
0
59.7717
230.2293

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 3-D Scene Control에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by