distanceCoord method

double distanceCoord(
  1. Coordinate p
)

Computes the distance between this line segment and a given point.

@return the distance from this segment to the given point

Implementation

double distanceCoord(Coordinate p) {
  return Distance.pointToSegment(p, p0, p1);
}