rotate a 3D point aroudn an axis and get the X,Y,Z values of the rotated point

1 visualización (últimos 30 días)
I have three othogonal axis defined as N_Plane1,N_Plane2,N_Plane3. I need to rotate a 3D point around one of the axis and then get the result.
N_Plane1=[-0.9823 -0.1851 0.0284]; N_Plane2=[ 0.1869 -0.9592 0.2120]; N_Plane3=[ -0.0120 0.2136 0.9768]
The point that I want to rotate is [374.9440 657.1367 -225.6085 ]
The origin of the axis is [400.1779 427.2031 -181.135]

Respuestas (1)

Matt J
Matt J el 16 de Dic. de 2019
Easily done using this File Exchange submission
As an example,
out=AxelRot([374.9440 657.1367 -225.6085 ].', angle, N_Plane1, [400.1779 427.2031 -181.135])
  4 comentarios
Jannie Tillaart
Jannie Tillaart el 16 de Dic. de 2019
Thanks, but I don't understand how to fill it in, Could you create an example using the data of the original question? Movement of the point=1?
Matt J
Matt J el 16 de Dic. de 2019
Same as before
fzero( @(angle) norm(AxelRot([374.9440 657.1367 -225.6085 ].', angle, N_Plane1, [400.1779 427.2031 -181.135])-Target) , angleGuess)

Iniciar sesión para comentar.

Categorías

Más información sobre Interpolating Gridded Data 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