Class MortonCode
java.lang.Object
com.hypixel.hytale.component.spatial.MortonCode
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final intprivate static final long -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic longencode(double x, double y, double z, double minX, double minY, double minZ, double maxX, double maxY, double maxZ) private static longexpandBits(long value) private static longinterleaveBits(long x, long y, long z)
-
Field Details
-
BITS_PER_AXIS
private static final int BITS_PER_AXIS- See Also:
-
MAX_COORD
private static final long MAX_COORD- See Also:
-
-
Constructor Details
-
MortonCode
public MortonCode()
-
-
Method Details
-
encode
public static long encode(double x, double y, double z, double minX, double minY, double minZ, double maxX, double maxY, double maxZ) -
interleaveBits
private static long interleaveBits(long x, long y, long z) -
expandBits
private static long expandBits(long value)
-