Package worldBuilder

Class 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 specified coordinates, which makes a POLYGON Vicinity also usable for nearest value (rather than interpolation)
    • Constructor Summary

      Constructors 
      Constructor Description
      Polygon​(Mesh mesh, double x, double y)
      create a new Vicinity of the surrounding Polygon
    • Method Summary

      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Polygon

        public Polygon​(Mesh mesh,
                       double x,
                       double y)
        create a new Vicinity of the surrounding Polygon
        Parameters:
        mesh - to be searched
        x - coordinate of vicinity
        y - coordinate of vicinity