home *** CD-ROM | disk | FTP | other *** search
/ Freelog Special Edition 11 / FreelogHS11.iso / Démos&Merveilles / Expiration / SOURCES / DEMO / TURTLE.H < prev    next >
C/C++ Source or Header  |  2000-07-31  |  909b  |  31 lines

  1. #ifndef _TURTLE_H
  2. #define _TURTLE_H
  3.  
  4. class TURTLE
  5. {
  6.     public:
  7.         TURTLE();
  8.         ~TURTLE();
  9.  
  10.         void TURTLE::RotateVector(Vector3f& U,float Nroll,float Vroll,float Uroll);
  11.         void TURTLE::ChangeBase(Vector3f& U,Vector3f& I,Vector3f& J,Vector3f& K);
  12.         void TURTLE::SaveVectors(void);
  13.         void TURTLE::RestoreVectors(void);
  14.         float TURTLE::frnd(float o_d,float d_o);
  15.  
  16.         Vector3f U,V,N; // vektory pohladu, hore, do boku
  17.         Vector3f POS;   // pozicia
  18.         Vector3f X,Y,Z; // pomocne vektory na rotovanie
  19.  
  20.     //movement
  21.         void TURTLE::Move(float s);
  22.         void TURTLE::Fly(float s);
  23.         void TURTLE::Strafe(float s);
  24.         void TURTLE::Rotate(float a, float b, float c);
  25.  
  26.     // settings
  27.         void TURTLE::SetPos(float x,float y,float z);
  28.         void TURTLE::SetVectors(Vector3f x,Vector3f y,Vector3f z);
  29. };
  30.  
  31. #endif