aether::default_agent_center< D > Struct Template Reference

Default formula for calculating the center of the given agent. More...

#include <morton_defaults.hh>

Public Types

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

Public Member Functions

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

Detailed Description

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

Default formula for calculating the center of 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_agent_center< D >::morton_type = typename dimension_traits<D>::morton_type
template<size_t D>
using aether::default_agent_center< D >::vector_type = typename dimension_traits<D>::vector_type

Member Function Documentation

template<size_t D>
template<typename T >
morton_type aether::default_agent_center< D >::operator() ( agent) const
inline
template<size_t D>
template<typename T >
morton_type aether::default_agent_center< D >::operator() ( T *  agent) const
inline
Returns
Default center position, which is simply the position of the agent.
Template Parameters
T- agent type which can be cast to vector_type*