docs: public static double distanceSegmentPoint(double startX, double startY, double endX, double endY, double pointX, double pointY) {
          Point nearest = nearestSegmentPoint(startX, startY, endX, endY, pointX, pointY);
          return Math.hypot(nearest.x - pointX, nearest.y - pointY);
      }