distance method
Report the distance between the nearest points on the input geometries.
@return the distance between the geometries or 0 if either input geometry is empty @throws IllegalArgumentException if either input geometry is null
Implementation
double distance() {
if (geom[0] == null || geom[1] == null)
throw new ArgumentError("null geometries are not supported");
if (geom[0]!.isEmpty() || geom[1]!.isEmpty()) return 0.0;
computeMinDistance();
return minDistance;
}