public class MortonCode
Class MortonCode. Provides mortoncode functionality for the Hytale server.
java.lang.Object > MortonCode
Field Summary
nx
final
double
nx
Field nx.
ny
final
double
ny
Field ny.
nz
final
double
nz
Field nz.
ix
final
long
ix
Field ix.
iy
final
long
iy
Field iy.
iz
final
long
iz
Field iz.
Method Detail
encode
static
long
encode
(final double x, final double y, final double z, final double minX, final double minY, final double minZ, final double maxX, final double maxY, final double maxZ)
Method encode.
- Parameters:
final doublexfinal doubleyfinal doublezfinal doubleminXfinal doubleminYfinal doubleminZfinal doublemaxXfinal doublemaxYfinal doublemaxZ
expandBits
static
long
expandBits
(long value)
Method expandBits.
- Parameters:
longvalue