KiCad PCB EDA Suite
|
Implements Morton Codes https://fgiesen.wordpress.com/2009/12/13/decoding-morton-codes/ http://www.forceflow.be/2013/10/07/morton-encodingdecoding-through-bit-interleaving-implementations/. More...
#include <cstdint>
Go to the source code of this file.
Functions | |
uint32_t | EncodeMorton2 (uint32_t x, uint32_t y) |
uint32_t | EncodeMorton3 (uint32_t x, uint32_t y, uint32_t z) |
uint32_t | DecodeMorton2X (uint32_t code) |
uint32_t | DecodeMorton2Y (uint32_t code) |
uint32_t | DecodeMorton3X (uint32_t code) |
uint32_t | DecodeMorton3Y (uint32_t code) |
uint32_t | DecodeMorton3Z (uint32_t code) |
Implements Morton Codes https://fgiesen.wordpress.com/2009/12/13/decoding-morton-codes/ http://www.forceflow.be/2013/10/07/morton-encodingdecoding-through-bit-interleaving-implementations/.
Definition in file mortoncodes.h.
uint32_t DecodeMorton2X | ( | uint32_t | code | ) |
Definition at line 98 of file mortoncodes.cpp.
References Compact1By1().
Referenced by RENDER_3D_RAYTRACE_BASE::initializeBlockPositions().
uint32_t DecodeMorton2Y | ( | uint32_t | code | ) |
Definition at line 104 of file mortoncodes.cpp.
References Compact1By1().
Referenced by RENDER_3D_RAYTRACE_BASE::initializeBlockPositions().
uint32_t DecodeMorton3X | ( | uint32_t | code | ) |
Definition at line 110 of file mortoncodes.cpp.
References Compact1By2().
uint32_t DecodeMorton3Y | ( | uint32_t | code | ) |
Definition at line 116 of file mortoncodes.cpp.
References Compact1By2().
uint32_t DecodeMorton3Z | ( | uint32_t | code | ) |
Definition at line 122 of file mortoncodes.cpp.
References Compact1By2().
uint32_t EncodeMorton2 | ( | uint32_t | x, |
uint32_t | y | ||
) |
Definition at line 86 of file mortoncodes.cpp.
References Part1By1().
uint32_t EncodeMorton3 | ( | uint32_t | x, |
uint32_t | y, | ||
uint32_t | z | ||
) |
Definition at line 92 of file mortoncodes.cpp.
References Part1By2().