The spica renderer
Public Member Functions | Static Public Member Functions | List of all members
spica::Bounds3_< T > Class Template Reference

Public Member Functions

 Bounds3_ (const Point3_< T > &posMin, const Point3_< T > &posMax)
 
 Bounds3_ (const Bounds3_< T > &b)
 
Bounds3_< T > & operator= (const Bounds3_< T > &b)
 
bool operator== (const Bounds3_< T > &b) const
 
bool operator!= (const Bounds3_< T > &b) const
 
int maximumExtent () const
 Maximum extent: return 0 -> x, 1 -> y, 2 -> z. More...
 
bool intersect (const Ray &ray, double *tNear=nullptr, double *tFar=nullptr) const
 Intersection test. More...
 
void merge (const Bounds3_< T > &b)
 
void merge (const Point3_< T > &p)
 
bool inside (const Point3_< T > &p) const
 
area () const
 
Point3_< T > posMin () const
 
Point3_< T > posMax () const
 

Static Public Member Functions

static Bounds3_< T > merge (const Bounds3_< T > &b1, const Bounds3_< T > &b2)
 

Member Function Documentation

template<class T >
bool spica::Bounds3_< T >::intersect ( const Ray ray,
double *  tNear = nullptr,
double *  tFar = nullptr 
) const

Intersection test.

template<class T >
int spica::Bounds3_< T >::maximumExtent ( ) const

Maximum extent: return 0 -> x, 1 -> y, 2 -> z.


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