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.
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] |
collision_checking::AABB::AABB |
( |
const Vec3f & |
v |
) |
[inline] |
collision_checking::AABB::AABB |
( |
const Vec3f & |
a, |
|
|
const Vec3f & |
b | |
|
) |
| | [inline] |
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] |
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] |
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] |
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] |
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] |
BVH_REAL collision_checking::AABB::width |
( |
|
) |
const [inline] |
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: