distance static method
Computes the distance between facets of two geometries.
For geometries with many segments or points, this can be faster than using a simple distance algorithm.
@param g1 a geometry @param g2 a geometry @return the distance between facets of the geometries
Implementation
static double distance(Geometry g1, Geometry g2) {
IndexedFacetDistance dist = new IndexedFacetDistance(g1);
return dist.facetDistance(g2);
}