Public Member Functions | Data Fields
AtBBox Struct Reference

3D axis-aligned bounding box (uses single-precision) More...

#include <ai_bbox.h>

Public Member Functions

AI_DEVICE AtBBox (const AtVector &mn, const AtVector &mx)
 
AI_DEVICE AtBBox (const AtVector &p0, const AtVector &p1, const AtVector &p2)
 Compute the bbox of a triangle.
 
AI_DEVICE void addSlack (float slack)
 Expand a bounding box with some safety slack volume.
 
AI_DEPRECATED void init (float bound)
 Initialize a bounding box to be empty. More...
 
void init ()
 Initialize a bounding box to be empty.
 
void expand (const AtVector &v)
 Expand a bounding box with a point.
 
bool inside (const AtVector &p) const
 Check to see if the specified point is inside the bbox.
 
float volume () const
 Compute the volume of a bbox.
 
bool isEmpty () const
 Returns whether or not the specified box is empty.
 
float halfArea () const
 Compute half the surface area of a bbox.
 
float area () const
 Compute the surface area of a bbox.
 
AtVector center () const
 Compute the center of a bbox.
 

Data Fields

AtVector min
 
AtVector max
 

Detailed Description

3D axis-aligned bounding box (uses single-precision)

Member Function Documentation

AI_DEPRECATED void AtBBox::init ( float  bound)
inline

Initialize a bounding box to be empty.

This version is deprecated because there is no benefit in passing in the float bound.


The documentation for this struct was generated from the following file:

© 2009-2018 Solid Angle SL · all rights reserved · www.solidangle.com