home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!cs.utexas.edu!ut-emx!ibmchs!auschs!awdprime.austin.ibm.com!linas
- From: linas@austin.ibm.com (Linas Vepstas)
- Newsgroups: comp.graphics
- Subject: Re: 3d rotation about an arbitrary axis: how?
- Message-ID: <1992Sep3.224841.23625@awdprime.austin.ibm.com>
- Date: 3 Sep 92 22:48:41 GMT
- References: <87331@netnews.upenn.edu> <1992Aug31.174635.14572@cs.UAlberta.CA>
- Sender: news@awdprime.austin.ibm.com (USENET News)
- Reply-To: linas@boardhead.austin.ibm.com
- Organization: IBM Graphics Systems
- Lines: 26
- Originator: linas@boardhead.austin.ibm.com
-
-
- In article <1992Aug31.174635.14572@cs.UAlberta.CA>, leung@cs.UAlberta.CA (Jian-Dong Liang) writes:
- > >I vaguely remember some kind of matrix formula for which the familiar x-,
- > >y-, and z-rotation matrices were but special cases. Does such a
- > >formula exist? Something about "Euler angles"...
- >
- > A rotation of magnitude theta around an arbitrary axis (x, y, z)
- > corresponds to a unit quaternion q=(q0, q1, q2, q3), where
- >
-
- A very similar formula can be dervied from the homomorphism of SU(2)
- (the Special (determinant=1) Unitary Group of 2x2 matrices) onto O(3)
- (the group of orthogonal (i.e. rotation) 3x3 matrices). My favorite rep
- for the su(2) algebra uses the pauli matrices -- si*si == sj*sj ==
- sk*sk == 1, much nicer than the quaternions, where you have that ugly
- thing i*i == j*j == k*k == -1. Minus one ??? ehhhugh!
-
- Anyway, if you have access to an IBM RS/6000 with AIX 3.2 or higher,
- you can find source code for "rot_about_axis" in /usr/lpp/GL/examples.
- --- Linas
- linas@innerdoor.austin.ibm.com
- --
-
- Linas Vepstas
-
- ^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^
-