Image Component Library (ICL)
|
internally used axis-aligned bounding box More...
#include <Octree.h>
Public Member Functions | |
AABB () | |
default constructor (does nothing) | |
AABB (const Pt ¢er, const Pt &halfSize) | |
constructor from given center and half size | |
bool | contains (const Pt &p) const |
returns whether a given 2D point is contained | |
bool | intersects (const AABB &o) const |
returns whether the AABB intersects with another AABB | |
Public Attributes | |
Pt | center |
center point | |
Pt | halfSize |
half dimension |
internally used axis-aligned bounding box
An AABB is defined by its center point and it half bounds into x- and y-direction
icl::math::Octree< Scalar, CAPACITY, SF, Pt, ALLOC_CHUNK_SIZE >::AABB::AABB | ( | ) | [inline] |
default constructor (does nothing)
icl::math::Octree< Scalar, CAPACITY, SF, Pt, ALLOC_CHUNK_SIZE >::AABB::AABB | ( | const Pt & | center, |
const Pt & | halfSize | ||
) | [inline] |
constructor from given center and half size
bool icl::math::Octree< Scalar, CAPACITY, SF, Pt, ALLOC_CHUNK_SIZE >::AABB::contains | ( | const Pt & | p | ) | const [inline] |
returns whether a given 2D point is contained
bool icl::math::Octree< Scalar, CAPACITY, SF, Pt, ALLOC_CHUNK_SIZE >::AABB::intersects | ( | const AABB & | o | ) | const [inline] |
Pt icl::math::Octree< Scalar, CAPACITY, SF, Pt, ALLOC_CHUNK_SIZE >::AABB::center |
center point
Pt icl::math::Octree< Scalar, CAPACITY, SF, Pt, ALLOC_CHUNK_SIZE >::AABB::halfSize |
half dimension