blob: 5bb9aa253c791f07f29ee48688f03b911ea07aed (
plain)
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
|
#include "Camera.hpp"
namespace MC {
Vector<3> Camera::position() {
return m_position;
}
void Camera::set_position(Vector<3> position) {
m_position = position;
}
void Camera::move(Vector<3> vector) {
m_position = m_position + vector;
}
Rotation Camera::angles() {
return m_angles;
}
void Camera::set_angles(Rotation angles) {
m_angles = angles;
}
void Camera::rotate(Rotation by) {
m_angles = m_angles + by;
}
}
|