Skip to main content
gamedev.net
🔒 Locked

Arbitrary Matrix rotations

Started by TonyZahn Dec 17, 2001 at 8:52 AM 0 replies 450+ views
Original Post
TonyZahn
TonyZahn
Hi, I''ve been working on introducing myself to OpenGL programming and have realized that I''m a little lacking in the math department. I''m trying to work on a base class for objects on 3d space. This class would store the location and orientation of a specific object. My algebra is too rusty to hand;e quaternions just yet, so I''m using matrices. My question is this: what''s the equation for rotating a matrix around an arbitrary vector? Basically I need an explination of how glRotate works. Thanks in advance.
grhodes_at_work
grhodes_at_work
The OpenGL red book (official Programming Guide has an appendix answering this exact question. It is appendix F (in the third edition).

Graham Rhodes
Senior Scientist
Applied Research Associates, Inc.
Graham Rhodes Moderator, Math & Physics forum @ gamedev.net

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.