Package squidpony.squidmath
Class FlawedPointHash.QuiltHash
java.lang.Object
squidpony.squidmath.IPointHash.LongImpl
squidpony.squidmath.FlawedPointHash.QuiltHash
- All Implemented Interfaces:
FlawedPointHash
,IFlawed
,IPointHash
- Enclosing interface:
- FlawedPointHash
public static class FlawedPointHash.QuiltHash extends IPointHash.LongImpl implements FlawedPointHash
Extremely flawed if you're using this as a point hash, but meant to be aesthetically interesting, this produces
different symmetrical patterns in squares, as if on a quilt.
-
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
-