/**
  * 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
  */
 public double distancePerpendicular(Coordinate p) {
   return CGAlgorithms.distancePointLinePerpendicular(p, p0, p1);
 }