Camera.h 593 B

123456789101112131415161718192021222324252627282930313233343536
  1. #ifndef CAMERA3D_H
  2. #define CAMERA3D_H
  3. #include "client/math/Ray.h"
  4. class Camera final {
  5. public:
  6. Camera(const Ray& ray);
  7. const Vector& getBack() const;
  8. const Vector& getRight() const;
  9. const Vector& getUp() const;
  10. const Vector& getFlatBack() const;
  11. const Vector& getFlatRight() const;
  12. const Vector& getFlatUp() const;
  13. const Vector& getPosition() const;
  14. void update(float lag);
  15. private:
  16. const Ray& ray;
  17. Vector back;
  18. Vector right;
  19. Vector up;
  20. Vector flatBack;
  21. Vector flatRight;
  22. Vector flatUp;
  23. Vector position;
  24. };
  25. #endif