segmentDistance function
Distance from point to the closed segment start–end.
Implementation
double segmentDistance(
DiagramPoint point,
DiagramPoint start,
DiagramPoint end,
) => math.sqrt(segmentDistanceSquared(point, start, end));
Distance from point to the closed segment start–end.
double segmentDistance(
DiagramPoint point,
DiagramPoint start,
DiagramPoint end,
) => math.sqrt(segmentDistanceSquared(point, start, end));