#include <Camera.h>
Public Member Functions | |
| Camera (Vector pos, Vector dir) | |
| void | setDimension (int width, int height) |
| void | rotate (Vector Center, int x, int y, int z) |
| Vector | getWCFromSC (int screen_x, int screen_y) |
| Ray | getRayFromSC (int screen_x, int screen_y) |
| Vector | getDir (void) |
| Vector | getPos (void) |
| float | getDistance (void) |
| int | getHeight (void) |
| int | getWidth (void) |
Private Attributes | |
| Vector | mPos |
| Vector | mDir |
| Vector | mUpDir |
| Vector | mRightDir |
| Vector | mOrigin |
| int | iWidth |
| int | iHeight |
| float | step_x |
| float | step_y |
| float | fDistance |
|
|
returns position of the camera |
|
|
returns the distance between the camera and the center of the Volume |
|
|
returns viewing direction |
|
||||||||||||
|
returns the viewing Ray for the given screen-corrdinates |
|
||||||||||||
|
returns the worldcoordinates for the given screen-corrdinates |
|
||||||||||||||||||||
|
rotates the camera around center by the degrees given for x, y and z |
|
||||||||||||
|
sets resolution |
1.4.5