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

internally used axis-aligned bounding box More...

#include <Octree.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...
 

Public Attributes

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

Detailed Description

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

◆ AABB() [1/2]

template<class Scalar, int CAPACITY = 16, int SF = 1, class Pt = FixedColVector<Scalar,4>, int ALLOC_CHUNK_SIZE = 1024>
icl::math::Octree< Scalar, CAPACITY, SF, Pt, ALLOC_CHUNK_SIZE >::AABB::AABB ( )
inline

default constructor (does nothing)

◆ AABB() [2/2]

template<class Scalar, int CAPACITY = 16, int SF = 1, class Pt = FixedColVector<Scalar,4>, int ALLOC_CHUNK_SIZE = 1024>
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

Member Function Documentation

◆ contains()

template<class Scalar, int CAPACITY = 16, int SF = 1, class Pt = FixedColVector<Scalar,4>, int ALLOC_CHUNK_SIZE = 1024>
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

◆ intersects()

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

returns whether the AABB intersects with another AABB

Member Data Documentation

◆ center

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

center point

◆ halfSize

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

half dimension


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