docs: function pointDistanceToSegmentDataSquared(pointCoordinates, segmentData) {
    const geometry = segmentData.geometry;
  
    if (geometry.getType() === GeometryType.CIRCLE) {
      const circleGeometry = /** @type {import("../geom/Circle.js").default} */ (geometry);
  
      if (segmentData.index === CIRCLE_CIRCUMFERENCE_INDEX) {
        const distanceToCenterSquared =
              squaredCoordinateDistance(circleGeometry.getCenter(), pointCoordinates);
        const distanceToCircumference =
              Math.sqrt(distanceToCenterSquared) - circleGeometry.getRadius();
        return distanceToCircumference * distanceToCircumference;
      }
    }
    return squaredDistanceToSegment(pointCoordinates, segmentData.segment);
  }