-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCamera.h
More file actions
29 lines (22 loc) · 744 Bytes
/
Camera.h
File metadata and controls
29 lines (22 loc) · 744 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#pragma once
#include "Vec3.h"
#include <vector>
#include "Quaternion.h"
class Camera {
public:
Vec3 position;
Quaternion rotation;
Camera(); // Default constructor
Camera(const Vec3& pos); // Constructor with position
std::vector<std::vector<float>> getTranslationMatrix() const;
std::vector<std::vector<float>> getRotationMatrix() const;
std::vector<std::vector<float>> getViewMatrix() const;
// Movement methods
Vec3 getForwardVector() const;
Vec3 getRightVector() const;
Vec3 getUpVector() const;
void moveForward(float distance);
void moveRight(float distance);
void moveUp(float distance);
void print() const;
};