Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

AABoundingBox Class Reference

Axis alignent bounding box. More...

#include <AABoundingBox.h>

Collaboration diagram for AABoundingBox:

Collaboration graph
[legend]
List of all members.

Public Methods

 AABoundingBox ()
 AABoundingBox (Vertex3 &f, Vertex3 &t)
Vertex3 size () const
Vertex3 center () const
void setRange (const Vertex3 &f, const Vertex3 &t)
void getRange (Vertex3 &f, Vertex3 &t) const
const Vertex3getFrom () const
const Vertex3getTo () const
void clear ()
bool empty () const
void set (const Vertex3 &v, real r)
void operator= (const Vertex3 &v)
void sweep (Vertex3 &v)
void operator+= (const Vertex3 &v)
void operator= (const AABoundingBox &box)
void operator+= (const AABoundingBox &box)
void operator *= (const AABoundingBox &box)
void sphere (const Vertex3 &v, real r)
real distance (const Vertex3 &v) const
bool intersect (const AABoundingBox &box) const
bool intersect (const Ray &ray) const
bool intersect (const Ray &ray, real &t0, real &t1) const

Protected Attributes

Vertex3 from
Vertex3 to

Friends

ostream & operator<< (ostream &stream, const AABoundingBox &b)
ObjectFileoperator>> (ObjectFile &f, AABoundingBox &b)

Detailed Description

Axis alignent bounding box.


The documentation for this class was generated from the following files:
This documentation was generated using doxygen. If you have any comments or additions please mail me.