-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCamera.cpp
More file actions
41 lines (40 loc) · 1.05 KB
/
Copy pathCamera.cpp
File metadata and controls
41 lines (40 loc) · 1.05 KB
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
30
31
32
33
34
35
36
37
38
39
40
41
//
// Created by Jiang Kairong on 4/14/18.
//
#include "Camera.h"
const Vector3d &Camera::getEyePosition() const {
return eyePosition;
}
void Camera::setEyePosition(const Vector3d &eyePosition) {
Camera::eyePosition = eyePosition;
}
const Vector3d &Camera::getLookAtPosition() const {
return lookAtPosition;
}
void Camera::setLookAtPosition(const Vector3d &lookUpPosition) {
Camera::lookAtPosition = lookUpPosition;
}
const Vector3d &Camera::getUpDirection() const {
return upDirection;
}
void Camera::setUpDirection(const Vector3d &upDirection) {
Camera::upDirection = upDirection;
}
double Camera::getAngle() const {
return angle;
}
void Camera::setAngle(double angle) {
Camera::angle = angle;
}
const std::pair<int, int> &Camera::getImageSize() const {
return imageSize;
}
void Camera::setImageSize(const std::pair<int, int> &imageSize) {
Camera::imageSize = imageSize;
}
const std::pair<double, double> &Camera::getDepths() const {
return depths;
}
void Camera::setDepths(const std::pair<double, double> &depths) {
Camera::depths = depths;
}