$search

collision_checking::AABB Class Reference

A class describing the AABB collision structure, which is a box in 3D space determined by two diagonal points. More...

#include <aabb.h>

List of all members.

Public Member Functions

 AABB (const Vec3f &a, const Vec3f &b)
 AABB (const Vec3f &v)
 AABB ()
bool axisOverlap (const AABB &other, int axis_id) const
 Check whether two AABB are overlapped along specific axis.
Vec3f center () const
 Center of the AABB.
bool contain (const Vec3f &p) const
 Check whether the AABB contains a point.
BVH_REAL depth () const
 Depth of the AABB.
BVH_REAL distance (const AABB &other) const
 The distance between two AABB Not implemented.
BVH_REAL height () const
 Height of the AABB.
AABB operator+ (const AABB &other) const
 Return the merged AABB of current AABB and the other one.
AABBoperator+= (const AABB &other)
 Merge the AABB and another AABB.
AABBoperator+= (const Vec3f &p)
 Merge the AABB and a point.
bool overlap (const AABB &other, AABB &overlap_part) const
 Check whether two AABB are overlap and return the overlap part.
bool overlap (const AABB &other) const
 Check whether two AABB are overlap.
BVH_REAL size () const
 Size of the AABB, for split order.
BVH_REAL volume () const
 Volume of the AABB.
BVH_REAL width () const
 Width of the AABB.

Public Attributes

Vec3f max_
 The max point in the AABB.
Vec3f min_
 The min point in the AABB.

Detailed Description

A class describing the AABB collision structure, which is a box in 3D space determined by two diagonal points.

Definition at line 51 of file aabb.h.


Constructor & Destructor Documentation

collision_checking::AABB::AABB (  )  [inline]

Definition at line 59 of file aabb.h.

collision_checking::AABB::AABB ( const Vec3f v  )  [inline]

Definition at line 66 of file aabb.h.

collision_checking::AABB::AABB ( const Vec3f a,
const Vec3f b 
) [inline]

Definition at line 70 of file aabb.h.


Member Function Documentation

bool collision_checking::AABB::axisOverlap ( const AABB other,
int  axis_id 
) const [inline]

Check whether two AABB are overlapped along specific axis.

Definition at line 91 of file aabb.h.

Vec3f collision_checking::AABB::center (  )  const [inline]

Center of the AABB.

Definition at line 176 of file aabb.h.

bool collision_checking::AABB::contain ( const Vec3f p  )  const [inline]

Check whether the AABB contains a point.

Definition at line 113 of file aabb.h.

BVH_REAL collision_checking::AABB::depth (  )  const [inline]

Depth of the AABB.

Definition at line 158 of file aabb.h.

BVH_REAL collision_checking::AABB::distance ( const AABB other  )  const [inline]

The distance between two AABB Not implemented.

Definition at line 184 of file aabb.h.

BVH_REAL collision_checking::AABB::height (  )  const [inline]

Height of the AABB.

Definition at line 152 of file aabb.h.

AABB collision_checking::AABB::operator+ ( const AABB other  )  const [inline]

Return the merged AABB of current AABB and the other one.

Definition at line 139 of file aabb.h.

AABB& collision_checking::AABB::operator+= ( const AABB other  )  [inline]

Merge the AABB and another AABB.

Definition at line 131 of file aabb.h.

AABB& collision_checking::AABB::operator+= ( const Vec3f p  )  [inline]

Merge the AABB and a point.

Definition at line 123 of file aabb.h.

bool collision_checking::AABB::overlap ( const AABB other,
AABB overlap_part 
) const [inline]

Check whether two AABB are overlap and return the overlap part.

Definition at line 101 of file aabb.h.

bool collision_checking::AABB::overlap ( const AABB other  )  const [inline]

Check whether two AABB are overlap.

Definition at line 77 of file aabb.h.

BVH_REAL collision_checking::AABB::size (  )  const [inline]

Size of the AABB, for split order.

Definition at line 170 of file aabb.h.

BVH_REAL collision_checking::AABB::volume (  )  const [inline]

Volume of the AABB.

Definition at line 164 of file aabb.h.

BVH_REAL collision_checking::AABB::width (  )  const [inline]

Width of the AABB.

Definition at line 146 of file aabb.h.


Member Data Documentation

The max point in the AABB.

Definition at line 57 of file aabb.h.

The min point in the AABB.

Definition at line 55 of file aabb.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends


collision_checking
Author(s): Jia Pan, Dinesh Manocha (UNC, Chapel Hill)
autogenerated on Fri Mar 1 14:57:00 2013