home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.graphics:9250 comp.graphics.visualization:1263
- Path: sparky!uunet!haven.umd.edu!darwin.sura.net!jvnc.net!netnews.upenn.edu!eniac.seas.upenn.edu!ledogar
- From: ledogar@eniac.seas.upenn.edu (Charles Ledogar)
- Newsgroups: comp.graphics,comp.graphics.visualization
- Subject: 3d rotation about an arbitrary axis: how?
- Message-ID: <87331@netnews.upenn.edu>
- Date: 28 Aug 92 18:59:56 GMT
- Sender: news@netnews.upenn.edu
- Followup-To: comp.graphics
- Organization: University of Pennsylvania
- Lines: 14
- Nntp-Posting-Host: eniac.seas.upenn.edu
-
- My visualization package now needs a flight-simulator-like viewpoint
- control. I have the viewpoint and viewdirection as 3d vectors in object
- space. I need to rotate the viewdirection vector, for example, "down" wrt to
- the current viewdirection. I've figured out the vector for the axis
- (say, (1,3,2) ) of rotation but I don't know the rotation matrix
- for rotation about that non-basic axis. I'd rather not have to convert
- to eye-coordinate space.
-
- 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"...
-
- ---Charlie Ledogar
- ledogar@eniac.seas.upenn.edu
-