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:
startansys.edb.core.typing.PointLike

Start point of the line segment.

endansys.edb.core.typing.PointLike, default: None

End point of the line segment.

Returns:
float