Implementation of the Morton SFC.
More...
#include <EBGeometry_SFC.hpp>
|
static uint64_t | encode (const Index &a_point) noexcept |
| Encode an input point into a Morton index with a 64-bit representation. More...
|
|
static Index | decode (const uint64_t &a_code) noexcept |
| Decode the 64-bit Morton code into an Index. More...
|
|
Implementation of the Morton SFC.
◆ decode()
static Index SFC::Morton::decode |
( |
const uint64_t & |
a_code | ) |
|
|
inlinestaticnoexcept |
Decode the 64-bit Morton code into an Index.
- Parameters
-
◆ encode()
static uint64_t SFC::Morton::encode |
( |
const Index & |
a_point | ) |
|
|
inlinestaticnoexcept |
Encode an input point into a Morton index with a 64-bit representation.
- Parameters
-
◆ Mask_64
constexpr uint_fast64_t SFC::Morton::Mask_64[6] |
|
staticconstexprprotected |
Initial value:{
0x1fffff, 0x1f00000000ffff, 0x1f0000ff0000ff, 0x100f00f00f00f00f, 0x10c30c30c30c30c3, 0x1249249249249249}
Mask for magic-bits encoding of 3D Morton code.
The documentation for this struct was generated from the following file: