Image Component Library (ICL)
Public Member Functions | Public Attributes | List of all members
icl::math::QuadTree< Scalar, CAPACITY, SF, ALLOC_CHUNK_SIZE, VECTOR_TYPE >::AABB Struct Reference

internally used axis-aligned bounding box More...

#include <QuadTree.h>

Public Member Functions

 AABB ()
 default constructor (does nothing) More...
 
 AABB (const Pt &center, const Pt &halfSize)
 constructor from given center and half size More...
 
bool contains (const Pt &p) const
 returns whether a given 2D point is contained More...
 
bool intersects (const AABB &o) const
 returns whether the AABB intersects with another AABB More...
 
utils::Rect32f rect () const
 

Public Attributes

Pt center
 center point More...
 
Pt halfSize
 half dimension More...
 

Detailed Description

template<class Scalar, int CAPACITY = 4, int SF = 1, int ALLOC_CHUNK_SIZE = 1024, class VECTOR_TYPE = FixedColVector<Scalar,2>>
struct icl::math::QuadTree< Scalar, CAPACITY, SF, ALLOC_CHUNK_SIZE, VECTOR_TYPE >::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

◆ AABB() [1/2]

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

default constructor (does nothing)

◆ AABB() [2/2]

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

constructor from given center and half size

Member Function Documentation

◆ contains()

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

returns whether a given 2D point is contained

◆ intersects()

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

returns whether the AABB intersects with another AABB

◆ rect()

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

Member Data Documentation

◆ center

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

center point

◆ halfSize

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

half dimension


The documentation for this struct was generated from the following file: