computeContainmentDistance3 method

void computeContainmentDistance3(
  1. GeometryLocation ptLoc,
  2. Polygon poly,
  3. List<GeometryLocation?> locPtPoly
)

Implementation

void computeContainmentDistance3(
    GeometryLocation ptLoc, Polygon poly, List<GeometryLocation?> locPtPoly) {
  Coordinate pt = ptLoc.getCoordinate();
  // if pt is not in exterior, distance to geom is 0
  if (Location.EXTERIOR != ptLocator.locate(pt, poly)) {
    minDistance = 0.0;
    locPtPoly[0] = ptLoc;
    locPtPoly[1] = new GeometryLocation.fromPointInArea(poly, pt);
    ;
    return;
  }
}