Package squidpony.squidmath
Class FlawedPointHash.RugHash
java.lang.Object
squidpony.squidmath.IPointHash.LongImpl
squidpony.squidmath.FlawedPointHash.RugHash
- All Implemented Interfaces:
FlawedPointHash
,IFlawed
,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.
-
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 long
getState()
static int
hashLongs(long x, long y, long s)
static int
hashLongs(long x, long y, long z, long s)
static int
hashLongs(long x, long y, long z, long w, long s)
static int
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)
Methods inherited from class squidpony.squidmath.IPointHash.LongImpl
hash, hash, hash, hash, setState, setState
-
Constructor Details
-
Method Details
-
getState
-
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
-