Camera.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. #ifndef CAMERA3D_H
  2. #define CAMERA3D_H
  3. #include "client/math/Vector.h"
  4. class Camera final
  5. {
  6. public:
  7. Camera();
  8. const Vector& getFront() const;
  9. const Vector& getBack() const;
  10. const Vector& getRight() const;
  11. const Vector& getLeft() const;
  12. const Vector& getUp() const;
  13. const Vector& getDown() const;
  14. const Vector& getFlatFront() const;
  15. const Vector& getFlatBack() const;
  16. const Vector& getFlatRight() const;
  17. const Vector& getFlatLeft() const;
  18. const Vector& getFlatUp() const;
  19. const Vector& getFlatDown() const;
  20. const Vector& getPosition() const;
  21. void storePosition();
  22. void setPosition(const Vector& pos, float length, float width);
  23. void update(float lag);
  24. private:
  25. Vector oldPosition;
  26. Vector position;
  27. float oldLengthAngle;
  28. float lengthAngle;
  29. float oldWidthAngle;
  30. float widthAngle;
  31. Vector interPosition;
  32. Vector front;
  33. Vector back;
  34. Vector right;
  35. Vector left;
  36. Vector up;
  37. Vector down;
  38. Vector flatFront;
  39. Vector flatBack;
  40. Vector flatRight;
  41. Vector flatLeft;
  42. Vector flatUp;
  43. Vector flatDown;
  44. };
  45. #endif