123456789101112131415161718192021222324252627282930313233343536 |
- #ifndef CAMERA3D_H
- #define CAMERA3D_H
- #include "client/math/Ray.h"
- class Camera final {
- public:
- Camera(const Ray& ray);
- const Vector& getBack() const;
- const Vector& getRight() const;
- const Vector& getUp() const;
- const Vector& getFlatBack() const;
- const Vector& getFlatRight() const;
- const Vector& getFlatUp() const;
- const Vector& getPosition() const;
- void update(float lag);
- private:
- const Ray& ray;
- Vector back;
- Vector right;
- Vector up;
- Vector flatBack;
- Vector flatRight;
- Vector flatUp;
- Vector position;
- };
- #endif
|