View.cppm 746 B

123456789101112131415161718192021222324252627282930
  1. module;
  2. export module Core.View;
  3. import Core.Matrix;
  4. import Core.Vector;
  5. import Core.Quaternion;
  6. export namespace Core {
  7. class View {
  8. Matrix view{};
  9. Vector3 back{};
  10. Vector3 down{};
  11. Vector3 front{};
  12. Vector3 left{};
  13. Vector3 right{};
  14. Vector3 up{};
  15. public:
  16. void updateDirections(float lengthAngle, float widthAngle);
  17. void updateDirections(const Quaternion& q);
  18. const Matrix& updateMatrix(const Vector3& pos);
  19. const Vector3& getBack() const;
  20. const Vector3& getDown() const;
  21. const Vector3& getFront() const;
  22. const Vector3& getLeft() const;
  23. const Vector3& getRight() const;
  24. const Vector3& getUp() const;
  25. };
  26. }