distanceCoord method
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);
}
Computes the distance between this line segment and a given point.
@return the distance from this segment to the given point
double distanceCoord(Coordinate p) {
return Distance.pointToSegment(p, p0, p1);
}