View.h 581 B

12345678910111213141516171819202122232425262728
  1. #ifndef VIEW_H
  2. #define VIEW_H
  3. #include "data/Array.h"
  4. #include "math/Matrix.h"
  5. #include "math/Plane.h"
  6. #include "math/Quaternion.h"
  7. class View final {
  8. Matrix view;
  9. Vector3 right;
  10. Vector3 up;
  11. Vector3 back;
  12. public:
  13. void updateDirections(float lengthAngle, float widthAngle);
  14. void updateDirections(const Quaternion& q);
  15. const Matrix& updateMatrix(const Vector3& pos);
  16. Vector3 getUp() const;
  17. Vector3 getDown() const;
  18. Vector3 getLeft() const;
  19. Vector3 getRight() const;
  20. Vector3 getFront() const;
  21. Vector3 getBack() const;
  22. };
  23. #endif