Cinder  0.8.6
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
cinder::AxisAlignedBox3f Class Reference

#include <AxisAlignedBox.h>

Public Member Functions

 AxisAlignedBox3f ()
 
 AxisAlignedBox3f (const Vec3f &aMin, const Vec3f &aMax)
 
bool intersects (const Ray &ray)
 
int intersect (const Ray &ray, float intersections[2])
 
Vec3f getCenter () const
 
Vec3f getSize () const
 
void include (const AxisAlignedBox3f &box)
 Expands the box so that it contains box. More...
 
const Vec3fgetMin () const
 
const Vec3fgetMax () const
 
Vec3f getNegative (const Vec3f &normal) const
 for use in frustum culling More...
 
Vec3f getPositive (const Vec3f &normal) const
 
AxisAlignedBox3f transformed (const Matrix44f &transform) const
 converts axis-aligned box to another coordinate space More...
 

Static Public Member Functions

static bool calcTriangleIntersection (const Ray &ray, const Vec3f &vert0, const Vec3f &vert1, const Vec3f &vert2, float *result)
 

Protected Attributes

Vec3f mExtents [2]
 
Vec3f mVerts [8]
 

Constructor & Destructor Documentation

cinder::AxisAlignedBox3f::AxisAlignedBox3f ( )
cinder::AxisAlignedBox3f::AxisAlignedBox3f ( const Vec3f aMin,
const Vec3f aMax 
)

Member Function Documentation

bool cinder::AxisAlignedBox3f::intersects ( const Ray ray)
int cinder::AxisAlignedBox3f::intersect ( const Ray ray,
float  intersections[2] 
)
Vec3f cinder::AxisAlignedBox3f::getCenter ( ) const
Vec3f cinder::AxisAlignedBox3f::getSize ( ) const
void cinder::AxisAlignedBox3f::include ( const AxisAlignedBox3f box)

Expands the box so that it contains box.

const Vec3f& cinder::AxisAlignedBox3f::getMin ( ) const
const Vec3f& cinder::AxisAlignedBox3f::getMax ( ) const
Vec3f cinder::AxisAlignedBox3f::getNegative ( const Vec3f normal) const

for use in frustum culling

Vec3f cinder::AxisAlignedBox3f::getPositive ( const Vec3f normal) const
AxisAlignedBox3f cinder::AxisAlignedBox3f::transformed ( const Matrix44f transform) const

converts axis-aligned box to another coordinate space

static bool cinder::AxisAlignedBox3f::calcTriangleIntersection ( const Ray ray,
const Vec3f vert0,
const Vec3f vert1,
const Vec3f vert2,
float *  result 
)
static

Member Data Documentation

Vec3f cinder::AxisAlignedBox3f::mExtents[2]
protected
Vec3f cinder::AxisAlignedBox3f::mVerts[8]
protected

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