distance method

double distance(
  1. Geometry g
)

Returns the minimum distance between this Geometry and another Geometry.

@param g the Geometry from which to compute the distance @return the distance between the geometries @return 0 if either input geometry is empty @throws IllegalArgumentException if g is null

Implementation

double distance(Geometry g) {
  return DistanceOp.distanceStatic(this, g);
}