home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / os / msdos / programm / 11800 < prev    next >
Encoding:
Text File  |  1993-01-05  |  1.4 KB  |  40 lines

  1. Newsgroups: comp.os.msdos.programmer
  2. Path: sparky!uunet!munnari.oz.au!newsroom.utas.edu.au!sol!quan
  3. From: quan@sol.surv.utas.edu.au (Stephen Quan)
  4. Subject: Re: Math experts! Need 3D rotation equation
  5. Message-ID: <quan.726211707@sol>
  6. Sender: news@newsroom.utas.edu.au
  7. Organization: University of Tasmania, Australia.
  8. References: <1993Jan4.015421.11143@ramsey.cs.laurentian.ca>
  9. Date: Tue, 5 Jan 1993 05:28:27 GMT
  10. Lines: 28
  11.  
  12. paul@ramsey.cs.laurentian.ca (Paul Lalonde) writes:
  13.  
  14. >I'm working on a small 3D graphics program that takes vector images
  15. >and rotates them about the XY axes.
  16.  
  17. There are 3 kinds of rotations in 3D :
  18.  
  19. x-axis rotation :
  20. y' = y*cos(angle) - z*sin(angle)
  21. z' = y*sin(angle) + z*cos(angle)
  22.  
  23. y-axis rotation :
  24. z' = z*cos(angle) - x*cos(angle)
  25. x' = z*sin(angle) + x*cos(angle)
  26.  
  27. z-axis rotation :
  28. x' = x*cos(angle) - y*sin(angle)
  29. y' = x*sin(angle) + y*cos(angle)
  30.  
  31. There is, of course, the more effective matrix representations of the
  32. above, but I didn't think Paul wanted to be bamboozled with all the
  33. matrix-algebra jargon.  Any good computer graphics would describe the
  34. 3D theory rotation well.
  35. --
  36. Stephen Quan (quan@sol.surv.utas.edu.au)      Tel : 002 202844 (local)
  37. Research Fellow, Computer Scientist,          Fax : 002 240282 (local)
  38. Centre for Spatial Information Systems,       Tel : 61 02 202844
  39. University of Tasmania, Australia.            Fax : 61 02 240282
  40.