🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Math experts! Need 3D rotation equation

#7461
From: Denis Beauregard
Date: Tue, 05 Jan 1993 20:31
43 lines
2385 bytes
In article <quan.726211707@sol> quan@sol.surv.utas.edu.au (Stephen Quan) writes:
>paul@ramsey.cs.laurentian.ca (Paul Lalonde) writes:
>
>>I'm working on a small 3D graphics program that takes vector images
>>and rotates them about the XY axes.
>
>There are 3 kinds of rotations in 3D :
>
>x-axis rotation :
>y' = y*cos(angle) - z*sin(angle)
>z' = y*sin(angle) + z*cos(angle)
>
>y-axis rotation :
>z' = z*cos(angle) - x*cos(angle)
>x' = z*sin(angle) + x*cos(angle)
>
>z-axis rotation :
>x' = x*cos(angle) - y*sin(angle)
>y' = x*sin(angle) + y*cos(angle)
>
>There is, of course, the more effective matrix representations of the
>above, but I didn't think Paul wanted to be bamboozled with all the
>matrix-algebra jargon.  Any good computer graphics would describe the
>3D theory rotation well.
>--
>Stephen Quan (quan@sol.surv.utas.edu.au)      Tel : 002 202844 (local)
>Research Fellow, Computer Scientist,          Fax : 002 240282 (local)
>Centre for Spatial Information Systems,       Tel : 61 02 202844
>University of Tasmania, Australia.            Fax : 61 02 240282

I don't remember the title, but there is a book including also
3D formulas with perspective, that is they are using 4 variables
instead of 3.  If you plan to develop something potentially more
powerful (like drawing boxes with perspective), you should explore
this now since it will be easier to develop now 3D-P programs than
to right some 3D programs and convert them later to 3D-P.  3D-P is
not the official name.

-- 
  \_\    Denis Beauregard  *  internet:beaurega@ireq.hydro.qc.ca
 /   \   Ge'ne'alogiste des familles : Beauregard/Jarret/Jarest/Vincent
J   __>  Un Que'bec renouvele' dans une Ame'rique renove'e
\_.-===  Ope'rateur de "Racines du Que'bec" (514) 922-9636 BBS/Genealogie
Technical Details
Message-ID: <C0EECx.44J@ireq.hydro.qc.ca>
Path: arc1-ca.pugleaf.net!sparky!uunet!usc!zaphod.mps.ohio-state.edu!saimiri.primate.wisc.edu!ames!olivea!charnel!sifon!clouso.crim.ca!hobbit.ireq.hydro.qc.ca!beaurega
References: <1993Jan4.015421.11143@ramsey.cs.laurentian.ca> <quan.726211707@sol>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!usc!zaphod.mps.ohio-state.edu!saimiri.primate.wisc.edu!ames!olivea!charnel!sifon!clouso.crim.ca!hobbit.ireq.hydro.qc.ca!beaurega
From: beaurega@ireq.hydro.qc.ca (Denis Beauregard)
Newsgroups: comp.os.msdos.programmer
Subject: Re: Math experts! Need 3D rotation equation
Message-ID: <C0EECx.44J@ireq.hydro.qc.ca>
Date: 5 Jan 93 20:31:45 GMT
References: <1993Jan4.015421.11143@ramsey.cs.laurentian.ca> <quan.726211707@sol>
Sender: news@ireq.hydro.qc.ca (Netnews Admin)
Organization: Institut de recherche d'Hydro-Quebec, Varennes, Canada
Lines: 43