public class ZonePartition
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static ZonePartition |
create(int width,
int height,
int partitionCount) |
int[] |
getAdjacent(int sourcePartition,
int iteration) |
int |
getPartition(float x,
float y) |
int |
getPartition(long objectId) |
void |
insert(long objectId,
int partition) |
void |
remove(long objectId) |
void |
update(long objectId,
float x,
float y) |
public static ZonePartition create(int width, int height, int partitionCount)
public int getPartition(long objectId)
public int getPartition(float x, float y)
public void update(long objectId, float x, float y)
public int[] getAdjacent(int sourcePartition, int iteration)
public void insert(long objectId, int partition)
public void remove(long objectId)