aether::default_aabb< D > Struct Template Reference

Default formula for calculating Axis Aligned Bounding Box for the given agent. More...

#include <morton_defaults.hh>

Public Types

using aabb_type = typename dimension_traits< D >::aabb_type
 
using vector_type = typename dimension_traits< D >::vector_type
 
using morton_type = typename dimension_traits< D >::morton_type
 

Public Member Functions

template<typename T >
aabb_type operator() (T agent) const
 
template<typename T >
aabb_type operator() (T *agent) const
 

Detailed Description

template<size_t D>
struct aether::default_aabb< D >

Default formula for calculating Axis Aligned Bounding Box for the given agent.

For use in octree_params_default

Template Parameters
D- number of dimensions

Member Typedef Documentation

template<size_t D>
using aether::default_aabb< D >::aabb_type = typename dimension_traits<D>::aabb_type
template<size_t D>
using aether::default_aabb< D >::morton_type = typename dimension_traits<D>::morton_type
template<size_t D>
using aether::default_aabb< D >::vector_type = typename dimension_traits<D>::vector_type

Member Function Documentation

template<size_t D>
template<typename T >
aabb_type aether::default_aabb< D >::operator() ( agent) const
inline
template<size_t D>
template<typename T >
aabb_type aether::default_aabb< D >::operator() ( T *  agent) const
inline
Returns
Default AABB for the given agent: +-0.5 around the agent's position
Template Parameters
T- agent type which can be cast to vector_type*