Support Forum       G3D Web Page     
Public Member Functions | Friends | List of all members
G3D::AABox Class Reference


An axis-aligned box. More...

Public Member Functions

 AABox ()
 Creates the empty bounds, i.e., an empty set of points. More...
 
 AABox (const Point3 &v)
 
Constructs a zero-volume AABox at v. More...
 
 AABox (const class Any &a)
 Format is one of: More...
 
 AABox (const Point3 &low, const Point3 &high)
 Assumes that low is less than or equal to high along each dimension. More...
 
void getTransformedBounds (const class Matrix3x4 &xform, AABox &bounds) const
 
bool isEmpty () const
 
AABox operator* (float f) const
 
AABox operator/ (float f) const
 
void set (const Point3 &low, const Point3 &high)
 Assumes that low is less than or equal to high along each dimension. More...
 
Any toAny () const
 

Friends

class Intersect
 

Detailed Description


An axis-aligned box.

Constructor & Destructor Documentation

◆ AABox() [1/4]

G3D::AABox::AABox ( )
inline

Creates the empty bounds, i.e., an empty set of points.

Referenced by operator*().

◆ AABox() [2/4]

G3D::AABox::AABox ( const Point3 v)
inlineexplicit


Constructs a zero-volume AABox at v.

◆ AABox() [3/4]

G3D::AABox::AABox ( const class Any a)
explicit

Format is one of:

  • AABox(lowpoint, highpoint)
  • AABox(point)
  • AABox::empty()
  • AABox::inf()

◆ AABox() [4/4]

G3D::AABox::AABox ( const Point3 low,
const Point3 high 
)
inline

Assumes that low is less than or equal to high along each dimension.

To have this automatically enforced, use AABox(low.min(high), low.max(high));

Member Function Documentation

◆ getTransformedBounds()

void G3D::AABox::getTransformedBounds ( const class Matrix3x4 xform,
AABox bounds 
) const

◆ isEmpty()

bool G3D::AABox::isEmpty ( ) const
inline

◆ operator*()

AABox G3D::AABox::operator* ( float  f) const
inline

◆ operator/()

AABox G3D::AABox::operator/ ( float  f) const
inline

◆ set()

void G3D::AABox::set ( const Point3 low,
const Point3 high 
)
inline

Assumes that low is less than or equal to high along each dimension.

◆ toAny()

Any G3D::AABox::toAny ( ) const

Friends And Related Function Documentation

◆ Intersect

friend class Intersect
friend

documentation generated on Wed Nov 24 2021 08:01:52 using doxygen 1.8.15