comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: IDLgrModel, rotation angles
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: IDLgrModel, rotation angles [message #38123 is a reply to message #38121] Mon, 23 February 2004 10:27 Go to previous message
James Kuyper is currently offline  James Kuyper
Messages: 425
Registered: March 2000
Senior Member
lyubo wrote:
>
> Hello,
>
> I have a transformation matrix and I must find the amount of rotation
> in degrees. How can I do that? Any help would be appreciated.
>
> Thank you,
>
> Lyubo


The eigenvalues of a pure rotation matrix are

EXP(COMPLEX(0,-theta))
1.0
EXP(COMPLEX(0,theta))

where theta is the rotation angle in radians. Therefore,

!RADEG*MAX(IMAGINARY(ALOG(HQR(ELMHESS(rot)))))

Will give you back the rotation angle of rot in degrees.
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: Array string
Next Topic: Re: HDF frustrations

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 15:31:17 PDT 2025

Total time taken to generate the page: 1.21793 seconds