distance#
- PointData.distance(start, end=None)#
Compute the shortest distance from the point to a line segment when an end point is given. Otherwise, compute the distance between this point and another point.
- Parameters:
- startPoint2DLike
Start point of the line segment.
- endPoint2DLike, default:
None
End point of the line segment.
- Returns: