lux::BBox Class Reference

#include <bbox.h>

Collaboration diagram for lux::BBox:
[legend]

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
float SurfaceArea () 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 34 of file bbox.h.


Constructor & Destructor Documentation

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

Definition at line 37 of file bbox.h.

References pMax, and pMin.

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

Definition at line 41 of file bbox.h.

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

Member Function Documentation

void lux::BBox::BoundingSphere ( Point c,
float *  rad 
) const
void lux::BBox::Expand ( float  delta  )  [inline]
bool lux::BBox::Inside ( const Point pt  )  const [inline]
bool lux::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 54 of file bbox.h.

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

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

Definition at line 73 of file bbox.h.

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

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

Definition at line 69 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 97 of file bbox.h.

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

Definition at line 41 of file bbox.cpp.

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

Definition at line 31 of file bbox.cpp.


Member Data Documentation


The documentation for this class was generated from the following files:
Generated by  doxygen 1.6.2-20100208