Image Component Library (ICL)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Public Attributes
icl::math::QuadTree< Scalar, CAPACITY, SF, ALLOC_CHUNK_SIZE >::AABB Struct Reference

internally used axis-aligned bounding box More...

#include <QuadTree.h>

List of all members.

Public Member Functions

 AABB ()
 default constructor (does nothing)
 AABB (const Pt &center, 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
utils::Rect32f rect () const

Public Attributes

Pt center
 center point
Pt halfSize
 half dimension

Detailed Description

template<class Scalar, int CAPACITY = 4, int SF = 1, int ALLOC_CHUNK_SIZE = 1024>
struct icl::math::QuadTree< Scalar, CAPACITY, SF, ALLOC_CHUNK_SIZE >::AABB

internally used axis-aligned bounding box

An AABB is defined by its center point and it half bounds into x- and y-direction


Constructor & Destructor Documentation

template<class Scalar , int CAPACITY = 4, int SF = 1, int ALLOC_CHUNK_SIZE = 1024>
icl::math::QuadTree< Scalar, CAPACITY, SF, ALLOC_CHUNK_SIZE >::AABB::AABB ( ) [inline]

default constructor (does nothing)

template<class Scalar , int CAPACITY = 4, int SF = 1, int ALLOC_CHUNK_SIZE = 1024>
icl::math::QuadTree< Scalar, CAPACITY, SF, ALLOC_CHUNK_SIZE >::AABB::AABB ( const Pt center,
const Pt halfSize 
) [inline]

constructor from given center and half size


Member Function Documentation

template<class Scalar , int CAPACITY = 4, int SF = 1, int ALLOC_CHUNK_SIZE = 1024>
bool icl::math::QuadTree< Scalar, CAPACITY, SF, ALLOC_CHUNK_SIZE >::AABB::contains ( const Pt p) const [inline]

returns whether a given 2D point is contained

template<class Scalar , int CAPACITY = 4, int SF = 1, int ALLOC_CHUNK_SIZE = 1024>
bool icl::math::QuadTree< Scalar, CAPACITY, SF, ALLOC_CHUNK_SIZE >::AABB::intersects ( const AABB o) const [inline]

returns whether the AABB intersects with another AABB

template<class Scalar , int CAPACITY = 4, int SF = 1, int ALLOC_CHUNK_SIZE = 1024>
utils::Rect32f icl::math::QuadTree< Scalar, CAPACITY, SF, ALLOC_CHUNK_SIZE >::AABB::rect ( ) const [inline]

Member Data Documentation

template<class Scalar , int CAPACITY = 4, int SF = 1, int ALLOC_CHUNK_SIZE = 1024>
Pt icl::math::QuadTree< Scalar, CAPACITY, SF, ALLOC_CHUNK_SIZE >::AABB::center

center point

template<class Scalar , int CAPACITY = 4, int SF = 1, int ALLOC_CHUNK_SIZE = 1024>
Pt icl::math::QuadTree< Scalar, CAPACITY, SF, ALLOC_CHUNK_SIZE >::AABB::halfSize

half dimension


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