Advertisement
Guest User

composant.hpp

a guest
Jun 4th, 2014
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.34 KB | None | 0 0
  1. #ifndef COMPOSANT_HPP_INCLUDED
  2. #define COMPOSANT_HPP_INCLUDED
  3.  
  4. class Point{
  5.  
  6. public:
  7. Point(); //Point constructor
  8. void SetLocation(int x,int y,int z); //define the point's location at (x ,y ,z)
  9. int getXp(); //get X location
  10. int getYp(); //get Y location
  11. int getZp(); //get Z location
  12.  
  13. private:
  14. int m_Xp;
  15. int m_Yp;
  16. int m_Zp;
  17.  
  18. };
  19.  
  20. class Vecteur{
  21.  
  22. public:
  23. Vecteur(); //Vecteur constructor
  24. void SetDirection(int x,int y,int z); //set the vector's direction
  25. void SetDirectionBP(Point point1,Point point2); //set the vector's direction with two point
  26. int getXv(); //get X location
  27. int getYv(); //get Y location
  28. int getZv(); //get Z location
  29.  
  30. private:
  31. int m_Xv;
  32. int m_Yv;
  33. int m_Zv;
  34. };
  35.  
  36. class Face{
  37.  
  38. public:
  39. Face(); //Face constructor
  40. ~Face(); //Face destructor
  41. void SetComp(Vecteur vec1,Vecteur vec2); //set the face with 2 vector
  42.  
  43. private:
  44. Vecteur* vecteur1;
  45. Vecteur* vecteur2;
  46. };
  47.  
  48. class Camera{
  49. public:
  50. Camera();
  51. void SetLocation(int x, int y, int z);
  52. void SetDirection(int x, int y, int z);
  53. void MoveTranslation(Vecteur vec);
  54. void MoveRotation(int angleX);
  55.  
  56. private:
  57. int m_Xc;
  58. int m_Yc;
  59. int m_Zc;
  60.  
  61. Vecteur* direction;
  62.  
  63. };
  64.  
  65.  
  66. #endif // COMPOSANT_HPP_INCLUDED
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement