Class FlawedPointHash.LowLeaningHash

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

public static class FlawedPointHash.LowLeaningHash extends IPointHash.IntImpl implements FlawedPointHash
Makes smaller results on average, with a biased average at about 25% of the range instead of 50% of the range for most non-biased hashes.
  • Constructor Details

    • LowLeaningHash

      public LowLeaningHash()
    • LowLeaningHash

      public LowLeaningHash(int state)
  • Method Details

    • getState

      public int getState()
    • hashWithState

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

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

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

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

      public int hashWithState(int x, int y, int z, int w, int u, int v, int s)
      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 s)
      Specified by:
      hashWithState in interface IPointHash