IntManhattanDistanceStructureLazy

Constructors

Link copied to clipboard
public void IntManhattanDistanceStructureLazy(int lowerBound, int upperBound, @NotNull() @NotNull() RegularGridModel<Integer> model)

Functions

Link copied to clipboard
public boolean areWithinBounds(int from, int to)
Helper method, might be preferable to the combination of isWithinBounds(getDistance(from, to)), if it makes sense for the current distance structure.
Link copied to clipboard
public Array<int> getBoundingBox(int i)
Link copied to clipboard
public Integer getDistance(int from, int to)
Method to retrieve the distance between the two locations.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
public int getIntDistance(int from, int to)
Link copied to clipboard
Link copied to clipboard
public Array<int> getNeighbourhood(int i)
Link copied to clipboard
public boolean isWithinBounds(int d)

public boolean isWithinBounds(Integer d)
Method to assess whether one location is within the bounds of the spatial structure