Public Member Functions |
| Frustum (const Frustum &) |
| Frustum (T near, T far, T left, T right, T top, T bottom, bool ortho=false) |
| Frustum (T near, T far, T fovx, T fovy, T aspect) |
const Frustum & | operator= (const Frustum &) |
bool | operator== (const Frustum< T > &src) const |
bool | operator!= (const Frustum< T > &src) const |
void | set (T near, T far, T left, T right, T top, T bottom, bool ortho=false) |
void | set (T near, T far, T fovx, T fovy, T aspect) |
void | modifyNearAndFar (T near, T far) |
void | setOrthographic (bool) |
bool | orthographic () const |
T | near () const |
T | hither () const |
T | far () const |
T | yon () const |
T | left () const |
T | right () const |
T | bottom () const |
T | top () const |
void | planes (Plane3< T > p[6]) |
void | planes (Plane3< T > p[6], const Matrix44< T > &M) |
T | fovx () const |
T | fovy () const |
T | aspect () const |
Matrix44< T > | projectionMatrix () const |
Frustum< T > | window (T left, T right, T top, T bottom) const |
Line3< T > | projectScreenToRay (const Vec2< T > &) const |
Vec2< T > | projectPointToScreen (const Vec3< T > &) const |
T | ZToDepth (long zval, long min, long max) const |
T | normalizedZToDepth (T zval) const |
long | DepthToZ (T depth, long zmin, long zmax) const |
T | worldRadius (const Vec3< T > &p, T radius) const |
T | screenRadius (const Vec3< T > &p, T radius) const |
Protected Member Functions |
Vec2< T > | screenToLocal (const Vec2< T > &) const |
Vec2< T > | localToScreen (const Vec2< T > &) const |
Protected Attributes |
T | _near |
T | _far |
T | _left |
T | _right |
T | _top |
T | _bottom |
bool | _orthographic |