Package squidpony.squidmath
Class FlawedPointHash.CubeHash
java.lang.Object
squidpony.squidmath.IPointHash.LongImpl
squidpony.squidmath.FlawedPointHash.CubeHash
- All Implemented Interfaces:
FlawedPointHash
,IFlawed
,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).-
Nested Class Summary
Nested classes/interfaces inherited from interface squidpony.squidmath.FlawedPointHash
FlawedPointHash.CubeHash, FlawedPointHash.FNVHash, FlawedPointHash.QuiltHash, FlawedPointHash.RugHash
Nested classes/interfaces inherited from interface squidpony.squidmath.IPointHash
IPointHash.IntImpl, IPointHash.LongImpl
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description int
getSize()
long
getState()
long
hashLongs(long x, long y, long s)
long
hashLongs(long x, long y, long z, long s)
long
hashLongs(long x, long y, long z, long w, long s)
long
hashLongs(long x, long y, long z, long w, long u, long v, long s)
int
hashWithState(int x, int y, int state)
int
hashWithState(int x, int y, int z, int state)
int
hashWithState(int x, int y, int z, int w, int state)
int
hashWithState(int x, int y, int z, int w, int u, int v, int state)
void
setSize(int size)
Methods inherited from class squidpony.squidmath.IPointHash.LongImpl
hash, hash, hash, hash, setState, setState
-
Constructor Details
-
Method Details
-
getState
-
getSize
-
setSize
-
hashLongs
-
hashLongs
-
hashLongs
-
hashLongs
-
hashWithState
- Specified by:
hashWithState
in interfaceIPointHash
-
hashWithState
- Specified by:
hashWithState
in interfaceIPointHash
-
hashWithState
- Specified by:
hashWithState
in interfaceIPointHash
-
hashWithState
- Specified by:
hashWithState
in interfaceIPointHash
-