nearestPoints static method
Computes the nearest points of the facets of two geometries.
@param g1 a geometry @param g2 a geometry @return the nearest points on the facets of the geometries
Implementation
static List<Coordinate?>? nearestPoints(Geometry g1, Geometry g2) {
IndexedFacetDistance dist = new IndexedFacetDistance(g1);
return dist.nearestPointsToGeometry(g2);
}