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 |
Default formula for calculating the center of the given agent.
For use in octree_params_default
D | - number of dimensions |
using aether::default_agent_center< D >::morton_type = typename dimension_traits<D>::morton_type |
using aether::default_agent_center< D >::vector_type = typename dimension_traits<D>::vector_type |
|
inline |
|
inline |
T | - agent type which can be cast to vector_type* |