aether::dimension_traits< 3 > Struct Template Reference

3-Dimentional morton code traits More...

#include <morton_defaults.hh>

Public Types

using morton_type = aether::morton::morton_code< dimension, 21 >
 
using aabb_type = aether::morton::AABB< morton_type >
 
using vector_type = aether::vec3f
 

Static Public Member Functions

static std::array< int32_t, dimensiondiscretize (const vector_type &v, float offset=0.0)
 Convert a floating point. More...
 

Static Public Attributes

static constexpr size_t dimension = 3
 

Detailed Description

template<>
struct aether::dimension_traits< 3 >

3-Dimentional morton code traits

Member Typedef Documentation

using aether::dimension_traits< 3 >::vector_type = aether::vec3f

Member Function Documentation

static std::array<int32_t, dimension> aether::dimension_traits< 3 >::discretize ( const vector_type v,
float  offset = 0.0 
)
inlinestatic

Convert a floating point.

Parameters
vinto an array of discrete position values, with optional
offset

Member Data Documentation

constexpr size_t aether::dimension_traits< 3 >::dimension = 3
static