Package worldBuilder
Class Polygon
- java.lang.Object
 - 
- worldBuilder.Vicinity
 - 
- worldBuilder.Polygon
 
 
 
- 
public class Polygon extends Vicinity
Polygon is the set of connected MeshPoints surrounding an (x,y) coordinate This Vicnity sub-class yields satisfactory lake shores, where there is an abrupt transition from water to land at the altitude of the escape point. Note: the first MeshPoint in a vicinity is the one nearest to the specifiedcoordinates, which makes a POLYGON Vicinity also usable for nearest value (rather than interpolation)  
- 
- 
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
- 
Polygon
public Polygon(Mesh mesh, double x, double y)
create a new Vicinity of the surrounding Polygon- Parameters:
 mesh- to be searchedx- coordinate of vicinityy- coordinate of vicinity
 
 - 
 
 -