distancePerpendicular method

double distancePerpendicular(
  1. Coordinate p
)

Computes the perpendicular distance between the (infinite) line defined by this line segment and a point.

@return the perpendicular distance between the defined line and the given point

Implementation

double distancePerpendicular(Coordinate p) {
  return Distance.pointToLinePerpendicular(p, p0, p1);
}