-
Notifications
You must be signed in to change notification settings - Fork 0
/
Camera.h
35 lines (29 loc) · 726 Bytes
/
Camera.h
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
/*
* Camera.h
* Project 2
*
* Class that abstracts the underlying processing
* of a camera's position in a 3D environment.
*
*/
#ifndef CAMERA_H
#define CAMERA_H
#include "Point3f.h"
#include "VectorsUtil.h"
class Camera {
public:
Point3f origin;
Point3f lookAt;
Point3f upVector;
Camera();
void init(float xOrigin, float yOrigin, float zOrigin,
float xLookAt, float yLookAt, float zLookAt,
float xUpVector, float yUpVector, float zUpVector);
void setOrigin(float x, float y, float z);
void setLookAt(float x, float y, float z);
void setUpVector(float x, float y, float z);
void turn(float angle, float x, float y, float z);
void roll(float angle);
void zoom(float amount);
};
#endif