C# Class Dwarrowdelf.MortonOrder

Morton order encoding (Z-Curve) http://www.forceflow.be/2013/10/07/morton-encodingdecoding-through-bit-interleaving-implementations/
Show file Open project: tomba/dwarrowdelf

Public Methods

Method Description
MortonEncode_For ( uint x, uint y, uint z ) : ulong
MortonEncode_LUT ( uint x, uint y, uint z ) : ulong
MortonEncode_MagicBits ( uint x, uint y, uint z ) : ulong

Private Methods

Method Description
SplitBy3 ( uint a ) : ulong

Method Details

MortonEncode_For() public static method

public static MortonEncode_For ( uint x, uint y, uint z ) : ulong
x uint
y uint
z uint
return ulong

MortonEncode_LUT() public static method

public static MortonEncode_LUT ( uint x, uint y, uint z ) : ulong
x uint
y uint
z uint
return ulong

MortonEncode_MagicBits() public static method

public static MortonEncode_MagicBits ( uint x, uint y, uint z ) : ulong
x uint
y uint
z uint
return ulong