public class KnownSizePointHash extends IPointHash.IntImpl
IntPointHash
.
IPointHash.IntImpl, IPointHash.LongImpl
Modifier and Type | Field and Description |
---|---|
int |
width |
state
Constructor and Description |
---|
KnownSizePointHash()
Creates a KnownSizePointHash with a grid width of 80.
|
KnownSizePointHash(int width)
Creates a KnownSizePointHash with the specified grid width; the grid height doesn't matter.
|
KnownSizePointHash(int state,
int width)
Creates a KnownSizePointHash with the specified state and grid width; the grid height doesn't matter.
|
Modifier and Type | Method and Description |
---|---|
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) |
public KnownSizePointHash()
public KnownSizePointHash(int width)
width
- how many cells wide the known grid ispublic KnownSizePointHash(int state, int width)
state
- the state of the point hash, which has minimal effect on the result (it is XORed in)width
- how many cells wide the known grid ispublic int hashWithState(int x, int y, int state)
public int hashWithState(int x, int y, int z, int state)
public int hashWithState(int x, int y, int z, int w, int state)
public int hashWithState(int x, int y, int z, int w, int u, int state)
public int hashWithState(int x, int y, int z, int w, int u, int v, int state)
Copyright © Eben Howard 2012–2022. All rights reserved.