Class FlawedPointHash.CubeHash

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

public static class FlawedPointHash.CubeHash extends IPointHash.LongImpl implements FlawedPointHash
Very similar to FlawedPointHash.QuiltHash, but this doesn't change the pattern in different large squares, and instead repeats a square or cube of symmetric and patterned results over and over (so it can be tiled).
  • Constructor Details

    • CubeHash

      public CubeHash()
    • CubeHash

      public CubeHash(long state)
    • CubeHash

      public CubeHash(long state, int size)
  • Method Details

    • getState

      public long getState()
    • getSize

      public int getSize()
    • setSize

      public void setSize(int size)
    • hashLongs

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

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

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

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

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

      public long 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