| VRS - The Virtual Rendering System |
| version 3.3 |
#include <vrs/perspective.h>

Public Member Functions | |
| Perspective (double fovy=45.0, double nearDistance=0.1, double farDistance=100) | |
| void | setFovy (double angle) |
| void | setNear (double nearP) |
| void | setFar (double farP) |
| double | getFovy () const |
| double | getNear () const |
| double | getFar () const |
| virtual const Matrix & | matrix (Engine *engine=0) const |
| Returns the perspective matrix. | |
| VRS_TYPEINFO (Perspective, Transform) | |
| VRS_SERIALIZABLE (Perspective) | |
| VRS::Perspective::Perspective | ( | double | fovy = 45.0, |
|
| double | nearDistance = 0.1, |
|||
| double | farDistance = 100 | |||
| ) |
A perspective transformation creates a symmetric perspective-view frustum. The frustum is clipped by perpendicular planes specified by their distance to the center of projection (near and far distances). The field of view (fovy) specifies the angle of the view volume.
| void VRS::Perspective::setFovy | ( | double | angle | ) |
| void VRS::Perspective::setNear | ( | double | nearP | ) |
| void VRS::Perspective::setFar | ( | double | farP | ) |
| double VRS::Perspective::getFovy | ( | ) | const [inline] |
| double VRS::Perspective::getNear | ( | ) | const [inline] |
| double VRS::Perspective::getFar | ( | ) | const [inline] |
The angle of view is defined by 'fovy'. It is specified in degrees. The 'near' and 'far' values are the distances between the viewpoint and the clipping planes, along the negative z-axis. They should be always positive. The distance is measured between starting from the observer's point.
| VRS::Perspective::VRS_TYPEINFO | ( | Perspective | , | |
| Transform | ||||
| ) |
| VRS::Perspective::VRS_SERIALIZABLE | ( | Perspective | ) |