public static class FlawedPointHash.QuiltHash extends IPointHash.LongImpl implements FlawedPointHash
FlawedPointHash.CubeHash, FlawedPointHash.FNVHash, FlawedPointHash.QuiltHash, FlawedPointHash.RugHash
IPointHash.IntImpl, IPointHash.LongImpl
state
Constructor and Description |
---|
QuiltHash() |
QuiltHash(long state)
The same as calling
QuiltHash(long, int) with size = 64 . |
QuiltHash(long state,
int size)
Creates a QuiltHash with the given state and a size for each "quilt square" equal to size, rounded up to the
next power of two if it is not already a power of two.
|
Modifier and Type | Method and 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 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 state) |
int |
hashWithState(int x,
int y,
int z,
int w,
int u,
int v,
int state) |
void |
setSize(int size) |
hash, hash, hash, hash, hash, setState, setState
public QuiltHash()
public QuiltHash(long state)
QuiltHash(long, int)
with size = 64 .state
- the state to use for hashing when no state is otherwise specifiedpublic QuiltHash(long state, int size)
state
- the state to use for hashing when no state is otherwise specifiedsize
- the size of each quilt square/cube, in no particular unit, but larger sizes can be more complexpublic long getState()
public int getSize()
public void setSize(int size)
public long hashLongs(long x, long y, long s)
public long hashLongs(long x, long y, long z, long s)
public long hashLongs(long x, long y, long z, long w, long s)
public long hashLongs(long x, long y, long z, long w, long u, long s)
public long hashLongs(long x, long y, long z, long w, long u, long v, long s)
public int hashWithState(int x, int y, int state)
hashWithState
in interface IPointHash
public int hashWithState(int x, int y, int z, int state)
hashWithState
in interface IPointHash
public int hashWithState(int x, int y, int z, int w, int state)
hashWithState
in interface IPointHash
public int hashWithState(int x, int y, int z, int w, int u, int state)
hashWithState
in interface IPointHash
public int hashWithState(int x, int y, int z, int w, int u, int v, int state)
hashWithState
in interface IPointHash
Copyright © Eben Howard 2012–2022. All rights reserved.