Class FlawedPointHash.SquishedCubeHash
java.lang.Object
com.github.yellowstonegames.grid.IPointHash.LongImpl
com.github.yellowstonegames.grid.FlawedPointHash.SquishedCubeHash
- All Implemented Interfaces:
com.github.yellowstonegames.core.IFlawed, FlawedPointHash, IPointHash
- Enclosing interface:
FlawedPointHash
public static class FlawedPointHash.SquishedCubeHash
extends IPointHash.LongImpl
implements FlawedPointHash
Like CubeHash, but with a squished Z axis in 3D and 4D, as well as a squashed W axis in 4D.
-
Nested Class Summary
Nested classes/interfaces inherited from interface FlawedPointHash
FlawedPointHash.CubeHash, FlawedPointHash.FlowerHash, FlawedPointHash.FNVHash, FlawedPointHash.LowLeaningHash, FlawedPointHash.QuiltHash, FlawedPointHash.RugHash, FlawedPointHash.SquishedCubeHashNested classes/interfaces inherited from interface IPointHash
IPointHash.IntImpl, IPointHash.LongImpl -
Field Summary
Fields inherited from class IPointHash.LongImpl
state -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetSize()longgetState()longhashLongs(long x, long y, long s) longhashLongs(long x, long y, long z, long s) longhashLongs(long x, long y, long z, long w, long s) longhashLongs(long x, long y, long z, long w, long u, long s) longhashLongs(long x, long y, long z, long w, long u, long v, long s) longhashLongs(long x, long y, long z, long w, long u, long v, long m, long s) inthashWithState(int x, int y, int state) inthashWithState(int x, int y, int z, int state) inthashWithState(int x, int y, int z, int w, int state) inthashWithState(int x, int y, int z, int w, int u, int state) inthashWithState(int x, int y, int z, int w, int u, int v, int state) inthashWithState(int x, int y, int z, int w, int u, int v, int m, int state) voidsetSize(int size)
-
Constructor Details
-
SquishedCubeHash
public SquishedCubeHash() -
SquishedCubeHash
public SquishedCubeHash(long state) -
SquishedCubeHash
public SquishedCubeHash(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:
hashWithStatein interfaceIPointHash
-
hashWithState
public int hashWithState(int x, int y, int z, int state) - Specified by:
hashWithStatein interfaceIPointHash
-
hashWithState
public int hashWithState(int x, int y, int z, int w, int state) - Specified by:
hashWithStatein interfaceIPointHash
-
hashWithState
public int hashWithState(int x, int y, int z, int w, int u, int state) - Specified by:
hashWithStatein interfaceIPointHash
-
hashWithState
public int hashWithState(int x, int y, int z, int w, int u, int v, int state) - Specified by:
hashWithStatein interfaceIPointHash
-
hashWithState
public int hashWithState(int x, int y, int z, int w, int u, int v, int m, int state) - Specified by:
hashWithStatein interfaceIPointHash
-