View.cppm 781 B

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