distanceStatic static method

double distanceStatic(
  1. Geometry g0,
  2. Geometry g1
)

Compute the distance between the nearest points of two geometries. @param g0 a {@link Geometry} @param g1 another {@link Geometry} @return the distance between the geometries

Implementation

static double distanceStatic(Geometry g0, Geometry g1) {
  DistanceOp distOp = new DistanceOp(g0, g1);
  return distOp.distance();
}