code: public static double distance(Coordinate c1, Coordinate c2, Coordinate c3) {
  		LineSegment ls = new LineSegment(c1, c2);
  		return ls.distance(c3);
  	}
docs: Distance between a point and a line.
  
  @param c1
  First coordinate of the line.
  @param c2
  Second coordinate of the line.
  @param c3
  Coordinate to calculate distance to line from.