code: public static double distance(Coordinate c1, Coordinate c2, Coordinate c) {
  		return distance(nearest(c1, c2, c), c);
  	}
docs: Distance between a point and a line segment. This method looks at the line segment c1-c2, it does not regard it
  as a line. This means that the distance to c is calculated to a point between c1 and c2.
  
  @param c1 First coordinate of the line segment.
  @param c2 Second coordinate of the line segment.
  @param c Coordinate to calculate distance to line from.
  @return distance between point and line segment