PBRT
Imath::Frustum< T > Class Template Reference

List of all members.

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 Frustumoperator= (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
near () const
hither () const
far () const
yon () const
left () const
right () const
bottom () const
top () const
void planes (Plane3< T > p[6])
void planes (Plane3< T > p[6], const Matrix44< T > &M)
fovx () const
fovy () const
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
ZToDepth (long zval, long min, long max) const
normalizedZToDepth (T zval) const
long DepthToZ (T depth, long zmin, long zmax) const
worldRadius (const Vec3< T > &p, T radius) const
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

_near
_far
_left
_right
_top
_bottom
bool _orthographic

template<class T>
class Imath::Frustum< T >


The documentation for this class was generated from the following file: