🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.msdos.programmer
Article #6269

Math experts! Need 3D rotation equation

#6269
From: Paul Lalonde
Date: Mon, 04 Jan 1993 01:54
18 lines
1086 bytes
I'm working on a small 3D graphics program that takes vector images
and rotates them about the XY axes.

However, I decided to throw in some 3D rotation for additional effect,
but I forget the rotation equation that applies to the z term!

I know x = r*cos(angle) and y = r*sin(angle), but what is the equation
to find the z term in 3R?

Thanks for any help!

Paul

-- 
------------------------------------+-----------------------------------------
Paul Lalonde, Dept. of CompSci      |  "C'mon baby, don't fear the Reaper"
Laurentian University - Sudbury/ONT |                           -B.O.C.
----'83-Mustang-GT-5.0L--&--RUSH----+-----------------------------------------
Technical Details
Message-ID: <1993Jan4.015421.11143@ramsey.cs.laurentian.ca>
Path: arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!torn!pulp.cs.laurentian.ca!paul

Show Full Headers
Complete Article Headers
Newsgroups: comp.os.msdos.programmer
Path: arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!torn!pulp.cs.laurentian.ca!paul
From: paul@ramsey.cs.laurentian.ca (Paul Lalonde)
Subject: Math experts!  Need 3D rotation equation
Message-ID: <1993Jan4.015421.11143@ramsey.cs.laurentian.ca>
Organization: Dept. of Computer Science, Laurentian University, Sudbury, ON
Date: Mon, 4 Jan 1993 01:54:21 GMT
Lines: 18