home *** CD-ROM | disk | FTP | other *** search
/ ftp.mactech.com 2010 / ftp.mactech.com.tar / ftp.mactech.com / online / source / cpp / graphics / Conics.sit.hqx / Conics / Sources / main.cpp < prev    next >
C/C++ Source or Header  |  1996-11-08  |  467b  |  28 lines

  1. //Copyright 1996 Aidan+Brian Cully
  2. //All rights reserved
  3.  
  4. #include <math.h>
  5. #include "ConicApp.h"
  6.  
  7. p3d rotpoint(p3d,float);
  8.  
  9. main() {
  10.     TConicApp app;
  11.     app.Init();
  12.     app.EventLoop();
  13.     return(0);
  14. }
  15.  
  16. p3d rotpoint(p3d point,float deg) {
  17.     p3d threepoint;
  18.     float costh,sinth;
  19.  
  20.     sinth = sin(deg*_PI/180);
  21.     costh = cos(deg*_PI/180);
  22.  
  23.     threepoint.x = point.x*costh - point.y*sinth;
  24.     threepoint.y = point.x*sinth + point.y*costh;
  25.     threepoint.z = point.z;
  26.  
  27.     return(threepoint);
  28. }