Package worldBuilder
Class Nearest
- java.lang.Object
-
- worldBuilder.Vicinity
-
- worldBuilder.Nearest
-
public class Nearest extends Vicinity
Nearest is the closest MeshPoint to an (x,y) coordinate This Vicinity sub-class is appropriate for things (like plant or mineral distribution) that do not interpolate.
-
-
Field Summary
-
Fields inherited from class worldBuilder.Vicinity
distances, neighbors, NUM_NEIGHBORS
-
-
Method Summary
-
Methods inherited from class worldBuilder.Vicinity
interpolate, nearest, nearestValid
-
-
-
-
Constructor Detail
-
Nearest
public Nearest(Mesh mesh, double x, double y)
create a new Vicinity from the closest MeshPoint- Parameters:
mesh
- to be searchedx
- coordinate of vicinityy
- coordinate of vicinity
-
-