Class MortonCode

java.lang.Object
com.hypixel.hytale.component.spatial.MortonCode

public class MortonCode extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private static final int
     
    private static final long
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static long
    encode(double x, double y, double z, double minX, double minY, double minZ, double maxX, double maxY, double maxZ)
     
    private static long
    expandBits(long value)
     
    private static long
    interleaveBits(long x, long y, long z)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • 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)