help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Rotation matrix definition


From: Carlo de Falco
Subject: Re: Rotation matrix definition
Date: Thu, 21 Nov 2019 13:01:59 +0100



Il 21 nov 2019 12:26, Carlo De Falco <address@hidden> ha scritto:


If I understand correctly what you mean this question/answer on stackexchange may help you [1].
Otherwise you need to better formalize your question to get a reply.
c.

[1] https://math.stackexchange.com/questions/180418/calculate-rotation-matrix-to-align-vector-a-to-vector-b-in-3d/897677#897677

And if you are OK with using homogeneous coordinates the problem discussed in that post can be simply implemented as

  T = vecrot (pi, (v + [1; 0; 0])/2)

Where I have assumed v is the name of the vector you want to align your x-axis with.

c.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]