Class Geometry.Nearest

java.lang.Object
dev.avelar.mapnik.Geometry.Nearest
Enclosing class:
Geometry

public static final class Geometry.Nearest extends Object
The closest point on a geometry to some location, and how far away it is.
  • Method Details

    • point

      public Point2d point()
    • distance

      public double distance()
      The distance from the location to point(), in the geometry's units. 0 if it is on the geometry.
    • toString

      public String toString()
      Overrides:
      toString in class Object