lux::BBox Class Reference

#include <bbox.h>

List of all members.

Public Member Functions

 BBox ()
 BBox (const Point &p)
 BBox (const Point &p1, const Point &p2)
bool Overlaps (const BBox &b) const
bool Inside (const Point &pt) const
void Expand (float delta)
float Volume () const
int MaximumExtent () const
void BoundingSphere (Point *c, float *rad) const
bool IntersectP (const Ray &ray, float *hitt0=NULL, float *hitt1=NULL) const

Public Attributes

Point pMin
Point pMax

Friends

ostream & operator<< (ostream &os, const BBox &b)
BBox Union (const BBox &b, const Point &p)
BBox Union (const BBox &b, const BBox &b2)


Detailed Description

Definition at line 35 of file bbox.h.


Constructor & Destructor Documentation

lux::BBox::BBox (  )  [inline]

Definition at line 38 of file bbox.h.

References INFINITY, pMax, and pMin.

lux::BBox::BBox ( const Point p  )  [inline]

Definition at line 42 of file bbox.h.

lux::BBox::BBox ( const Point p1,
const Point p2 
) [inline]


Member Function Documentation

void BBox::BoundingSphere ( Point c,
float *  rad 
) const

void lux::BBox::Expand ( float  delta  )  [inline]

Definition at line 66 of file bbox.h.

References pMax, and pMin.

Referenced by lux::IrradianceCache::IndirectLo().

bool lux::BBox::Inside ( const Point pt  )  const [inline]

bool BBox::IntersectP ( const Ray ray,
float *  hitt0 = NULL,
float *  hitt1 = NULL 
) const

int lux::BBox::MaximumExtent (  )  const [inline]

bool lux::BBox::Overlaps ( const BBox b  )  const [inline]

Definition at line 55 of file bbox.h.

References pMax, pMin, lux::Point::x, lux::Point::y, and lux::Point::z.

float lux::BBox::Volume (  )  const [inline]

Definition at line 70 of file bbox.h.

References pMax, pMin, lux::Vector::x, lux::Vector::y, and lux::Vector::z.

Referenced by lux::IrradianceCache::IndirectLo().


Friends And Related Function Documentation

ostream& operator<< ( ostream &  os,
const BBox b 
) [friend]

Definition at line 94 of file bbox.h.

BBox Union ( const BBox b,
const BBox b2 
) [friend]

Definition at line 40 of file geometry.cpp.

BBox Union ( const BBox b,
const Point p 
) [friend]

Definition at line 30 of file geometry.cpp.


Member Data Documentation


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

Generated on Mon May 18 07:13:51 2009 for lux by  doxygen 1.5.8