/// <summary> /// Computes the perpendicular distance between the (infinite) line defined /// by this line segment and a point. /// </summary> /// <param name="p"></param> /// <returns></returns> public virtual double DistancePerpendicular(Coordinate p) { return(CgAlgorithms.DistancePointLinePerpendicular(new Coordinate(p), P0, P1)); }