quadgrid 0.1
simple cartesian quad grid with particles for c++/octave
Loading...
Searching...
No Matches
mmorton.h File Reference
#include <cstdint>
#include <numeric>

Go to the source code of this file.

Typedefs

using coord_t = uint_least32_t
using morton_code_t = uint_fast64_t

Functions

morton_code_t coord_2_morton (coord_t _x, coord_t _y)
void morton_2_coord (morton_code_t code, coord_t &_x, coord_t &_y)

Variables

constexpr coord_t max_level = 31
constexpr coord_t max_coord = std::numeric_limits<coord_t>::max ()

Typedef Documentation

◆ coord_t

using coord_t = uint_least32_t

◆ morton_code_t

using morton_code_t = uint_fast64_t

Function Documentation

◆ coord_2_morton()

morton_code_t coord_2_morton ( coord_t _x,
coord_t _y )

◆ morton_2_coord()

void morton_2_coord ( morton_code_t code,
coord_t & _x,
coord_t & _y )

Variable Documentation

◆ max_coord

coord_t max_coord = std::numeric_limits<coord_t>::max ()
constexpr

◆ max_level

coord_t max_level = 31
constexpr