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 / Include / Conic.h < prev    next >
Text File  |  1996-11-13  |  785b  |  47 lines

  1. //Copyright 1996 Brian+Aidan Cully
  2. //All rights reserved
  3.  
  4. #ifndef __CONIC_H
  5. #define __CONIC_H
  6.  
  7. #include "LTypes.h"
  8. #include "Angle.h"
  9.  
  10. #define CONICPARTS 80
  11.  
  12. class TPlane {
  13. protected:
  14.     float pdis;
  15.     void CalcNormal();
  16.     TAngle pang;
  17.     p3d *aplane;
  18. public:
  19.     p3d *plane;
  20.     p3d pnorm;
  21.     TPlane();
  22.     ~TPlane();
  23.     void Init();
  24.     void Kill();
  25.     void SetDistance( float dis );
  26.     float GetDistance() {return( pdis );};
  27.     void SetAngle( float );
  28.     float GetAngle() {return(pang.GetAngle());};
  29.     float GetSinAngle() {return(pang.GetSinAngle());};
  30.     float GetCosAngle() {return(pang.GetCosAngle());};
  31.     void RotPlane();
  32. };
  33.  
  34. class TConic {
  35. protected:
  36.     p3d *aconic;
  37. public:
  38.     int tnumint, *intersect;
  39.     p3d *conic;
  40.     TConic();
  41.     ~TConic();
  42.     void Init();
  43.     void Kill();
  44.     void CalcIntersect( const TPlane & );
  45. };
  46.  
  47. #endif