Cogs.Foundation
Loading...
Searching...
No Matches
Namespaces | Functions
MortonCode.h File Reference
#include <cstdint>

Go to the source code of this file.

Namespaces

namespace  Cogs
 Main Cogs namespace.
 

Functions

constexpr uint64_t Cogs::mortonCode (uint16_t i, uint16_t j, uint16_t k)
 Interleave bits of 3 values to form the 3-way Morton code.
 
constexpr uint32_t Cogs::mortonCode (uint16_t a, uint16_t b)
 Interleave bits of 2 values.