nearestPointsStatic static method

List<Coordinate> nearestPointsStatic(
  1. Geometry g0,
  2. Geometry g1
)

Compute the the nearest points of two geometries. The points are presented in the same order as the input Geometries.

@param g0 a {@link Geometry} @param g1 another {@link Geometry} @return the nearest points in the geometries

Implementation

static List<Coordinate> nearestPointsStatic(Geometry g0, Geometry g1) {
  DistanceOp distOp = new DistanceOp(g0, g1);
  return distOp.nearestPoints();
}