Class FlawedPointHash.RugHash

java.lang.Object
com.github.yellowstonegames.grid.IPointHash.LongImpl
com.github.yellowstonegames.grid.FlawedPointHash.RugHash
All Implemented Interfaces:
com.github.yellowstonegames.core.IFlawed, FlawedPointHash, IPointHash
Enclosing interface:
FlawedPointHash

public static class FlawedPointHash.RugHash extends IPointHash.LongImpl implements FlawedPointHash
Produces hashes that show strong bias on one axis (usually the later axes matter more) and have nice-looking patterns of dots. Better patterns are present in the higher bits.
  • Constructor Details

    • RugHash

      public RugHash()
    • RugHash

      public RugHash(long state)
  • Method Details

    • getState

      public long getState()
    • hashLongs

      public static int hashLongs(long x, long y, long s)
    • hashLongs

      public static int hashLongs(long x, long y, long z, long s)
    • hashLongs

      public static int hashLongs(long x, long y, long z, long w, long s)
    • hashLongs

      public static int hashLongs(long x, long y, long z, long w, long u, long s)
    • hashLongs

      public static int hashLongs(long x, long y, long z, long w, long u, long v, long s)
    • hashLongs

      public static int hashLongs(long x, long y, long z, long w, long u, long v, long m, long s)
    • hashWithState

      public int hashWithState(int x, int y, int state)
      Specified by:
      hashWithState in interface IPointHash
    • hashWithState

      public int hashWithState(int x, int y, int z, int state)
      Specified by:
      hashWithState in interface IPointHash
    • hashWithState

      public int hashWithState(int x, int y, int z, int w, int state)
      Specified by:
      hashWithState in interface IPointHash
    • hashWithState

      public int hashWithState(int x, int y, int z, int w, int u, int state)
      Specified by:
      hashWithState in interface IPointHash
    • hashWithState

      public int hashWithState(int x, int y, int z, int w, int u, int v, int state)
      Specified by:
      hashWithState in interface IPointHash
    • hashWithState

      public int hashWithState(int x, int y, int z, int w, int u, int v, int m, int state)
      Specified by:
      hashWithState in interface IPointHash