quadgrid 0.1
simple cartesian quad grid with particles for c++/octave
Loading...
Searching...
No Matches
mmorton.h
Go to the documentation of this file.
1#ifndef HAVE_MMORTON_H
2#define HAVE_MMORTON_H
3
4#include <cstdint>
5#include <numeric>
6
7using coord_t = uint_least32_t;
8using morton_code_t = uint_fast64_t;
9
10constexpr coord_t max_level = 31;
11constexpr coord_t max_coord = std::numeric_limits<coord_t>::max ();
12
15
16void
18
19#endif // HAVE_MMORTON_H
constexpr coord_t max_coord
Definition mmorton.h:11
void morton_2_coord(morton_code_t code, coord_t &_x, coord_t &_y)
Definition mmorton.cc:75
morton_code_t coord_2_morton(coord_t _x, coord_t _y)
Definition mmorton.cc:8
uint_fast64_t morton_code_t
Definition mmorton.h:8
constexpr coord_t max_level
Definition mmorton.h:10
uint_least32_t coord_t
Definition mmorton.h:7