Package worldBuilder

Class 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.
    • Constructor Summary

      Constructors 
      Constructor Description
      Nearest​(Mesh mesh, double x, double y)
      create a new Vicinity from the closest MeshPoint
    • Method Summary

      • Methods inherited from class java.lang.Object

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

      • Nearest

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