#include <Camera.h>
Public Member Functions | |
| Camera () | |
| Konstruktor. | |
| Camera (float distance) | |
| Destruktor. | |
| ~Camera () | |
| Destruktor. | |
| void | setRotation (float xRot, float yRot) |
| sets the Rotation of the Camera | |
| void | addRotation (float xRot, float yRot) |
| changes the Rotation of the Camera | |
| void | setDistance (float newDistance) |
| sets the Distance of the Camera from the Origin | |
| float | getDistance () |
| returns the Distance of the Camera from the Origin | |
| float | getXRot () |
| returns the Rotation of the Camera in X-Direction | |
| float | getYRot () |
| returns the Rotation of the Camera in Y-Direction | |
Private Attributes | |
| float | xRot |
| saves the actual Camera-Rotation in X-Direction | |
| float | yRot |
| saves the actual Camera-Rotation in Y-Direction | |
| float | distance |
| saves the actual Distance | |
this Class that defines the Camera-Model
| Camera::Camera | ( | ) |
| Camera::Camera | ( | float | distance | ) |
| Camera::~Camera | ( | ) |
| void Camera::addRotation | ( | float | xRot, | |
| float | yRot | |||
| ) |
changes the Rotation of the Camera
adds the specified Values to the actual Camera-Rotation in X- and Y-Direction
| float Camera::getDistance | ( | ) |
returns the Distance of the Camera from the Origin
returns the actual Camera-Distance from the Origin
| float Camera::getXRot | ( | ) |
| float Camera::getYRot | ( | ) |
| void Camera::setDistance | ( | float | newDistance | ) |
| void Camera::setRotation | ( | float | xRot, | |
| float | yRot | |||
| ) |
float Camera::distance [private] |
saves the actual Distance
float Camera::xRot [private] |
saves the actual Camera-Rotation in X-Direction
float Camera::yRot [private] |
saves the actual Camera-Rotation in Y-Direction
1.5.7.1