EBGeometry  1.0
Classes | Functions
BoundingVolumes Namespace Reference

Namespace for encapsulating various bounding volumes for usage with BVHs. More...

Classes

class  BoundingSphereT
 Class which encloses a set of points using a bounding sphere. More...
 
class  AABBT
 Axis-aligned bounding box as bounding volume. More...
 

Functions

template<class T >
bool intersects (const BoundingSphereT< T > &a_u, const BoundingSphereT< T > &a_v) noexcept
 Intersection method for testing if two bounding spheres overlap. More...
 
template<class T >
bool intersects (const AABBT< T > &a_u, const AABBT< T > &a_v) noexcept
 Intersection method for testing if two bounding boxes overlap. More...
 
template<class T >
getOverlappingVolume (const BoundingSphereT< T > &a_u, const BoundingSphereT< T > &a_v) noexcept
 Compute the overlapping volume between two bounding spheres. More...
 
template<class T >
getOverlappingVolume (const AABBT< T > &a_u, const AABBT< T > &a_v) noexcept
 Compute the overlapping volume between two bounding boxes. More...
 

Detailed Description

Namespace for encapsulating various bounding volumes for usage with BVHs.

Function Documentation

◆ getOverlappingVolume() [1/2]

template<class T >
T BoundingVolumes::getOverlappingVolume ( const AABBT< T > &  a_u,
const AABBT< T > &  a_v 
)
noexcept

Compute the overlapping volume between two bounding boxes.

Parameters
[in]a_uOne bounding box
[in]a_vThe other bounding box

◆ getOverlappingVolume() [2/2]

template<class T >
T BoundingVolumes::getOverlappingVolume ( const BoundingSphereT< T > &  a_u,
const BoundingSphereT< T > &  a_v 
)
noexcept

Compute the overlapping volume between two bounding spheres.

Parameters
[in]a_uOne bounding sphere
[in]a_vThe other bounding sphere

◆ intersects() [1/2]

template<class T >
bool BoundingVolumes::intersects ( const AABBT< T > &  a_u,
const AABBT< T > &  a_v 
)
noexcept

Intersection method for testing if two bounding boxes overlap.

Parameters
[in]a_uOne bounding box
[in]a_vThe other bounding box

◆ intersects() [2/2]

template<class T >
bool BoundingVolumes::intersects ( const BoundingSphereT< T > &  a_u,
const BoundingSphereT< T > &  a_v 
)
noexcept

Intersection method for testing if two bounding spheres overlap.

Parameters
[in]a_uOne bounding sphere
[in]a_vThe other bounding sphere