|
wavelength 1.0.0
|
Six-plane view volume. More...
#include <frustum.h>

Public Member Functions | |
| void | Set (float flNear, float flFar, float flFov, float flAspect) |
| Build the six planes of a perspective view volume. | |
Public Attributes | |
| Plane | mFront |
| Plane | mBack |
| Plane | mLeft |
| Plane | mRight |
| Plane | mTop |
| Plane | mBottom |
Six-plane view volume.
The class is not polymorphic and emits no RTTI descriptor, so the name is inferred. The member order and the member titles both come from the text writer, which walks six consecutive quadwords and writes them under "\n\tfront:", "\n\tback:", "\n\tleft:", "\n\tright:", "\n\ttop:", and "\n\tbottom:".
| void Frustum::Set | ( | float | flNear, |
| float | flFar, | ||
| float | flFov, | ||
| float | flAspect ) |
Build the six planes of a perspective view volume.
Every plane is expressed in camera space. The four side planes pass through the origin unless flFov is zero. A zero flFov gives each side plane the distance of the unit offset it is built through.
| flNear | Distance to the near plane. |
| flFar | Distance to the far plane. |
| flFov | Field of view in radians. |
| flAspect | Vertical extent divided by the horizontal extent. |
| Plane Frustum::mFront |
| Plane Frustum::mBack |
| Plane Frustum::mLeft |
| Plane Frustum::mRight |
| Plane Frustum::mTop |
| Plane Frustum::mBottom |