home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / os / msdos / programm / 11812 < prev    next >
Encoding:
Internet Message Format  |  1993-01-05  |  2.3 KB

  1. Path: 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
  2. From: beaurega@ireq.hydro.qc.ca (Denis Beauregard)
  3. Newsgroups: comp.os.msdos.programmer
  4. Subject: Re: Math experts! Need 3D rotation equation
  5. Message-ID: <C0EECx.44J@ireq.hydro.qc.ca>
  6. Date: 5 Jan 93 20:31:45 GMT
  7. References: <1993Jan4.015421.11143@ramsey.cs.laurentian.ca> <quan.726211707@sol>
  8. Sender: news@ireq.hydro.qc.ca (Netnews Admin)
  9. Organization: Institut de recherche d'Hydro-Quebec, Varennes, Canada
  10. Lines: 43
  11.  
  12. In article <quan.726211707@sol> quan@sol.surv.utas.edu.au (Stephen Quan) writes:
  13. >paul@ramsey.cs.laurentian.ca (Paul Lalonde) writes:
  14. >
  15. >>I'm working on a small 3D graphics program that takes vector images
  16. >>and rotates them about the XY axes.
  17. >
  18. >There are 3 kinds of rotations in 3D :
  19. >
  20. >x-axis rotation :
  21. >y' = y*cos(angle) - z*sin(angle)
  22. >z' = y*sin(angle) + z*cos(angle)
  23. >
  24. >y-axis rotation :
  25. >z' = z*cos(angle) - x*cos(angle)
  26. >x' = z*sin(angle) + x*cos(angle)
  27. >
  28. >z-axis rotation :
  29. >x' = x*cos(angle) - y*sin(angle)
  30. >y' = x*sin(angle) + y*cos(angle)
  31. >
  32. >There is, of course, the more effective matrix representations of the
  33. >above, but I didn't think Paul wanted to be bamboozled with all the
  34. >matrix-algebra jargon.  Any good computer graphics would describe the
  35. >3D theory rotation well.
  36. >--
  37. >Stephen Quan (quan@sol.surv.utas.edu.au)      Tel : 002 202844 (local)
  38. >Research Fellow, Computer Scientist,          Fax : 002 240282 (local)
  39. >Centre for Spatial Information Systems,       Tel : 61 02 202844
  40. >University of Tasmania, Australia.            Fax : 61 02 240282
  41.  
  42. I don't remember the title, but there is a book including also
  43. 3D formulas with perspective, that is they are using 4 variables
  44. instead of 3.  If you plan to develop something potentially more
  45. powerful (like drawing boxes with perspective), you should explore
  46. this now since it will be easier to develop now 3D-P programs than
  47. to right some 3D programs and convert them later to 3D-P.  3D-P is
  48. not the official name.
  49.  
  50. -- 
  51.   \_\    Denis Beauregard  *  internet:beaurega@ireq.hydro.qc.ca
  52.  /   \   Ge'ne'alogiste des familles : Beauregard/Jarret/Jarest/Vincent
  53. J   __>  Un Que'bec renouvele' dans une Ame'rique renove'e
  54. \_.-===  Ope'rateur de "Racines du Que'bec" (514) 922-9636 BBS/Genealogie
  55.