point_segment_distance#
- static GeometryOperators.point_segment_distance(p, a, b)#
Calculate the distance between a point
pand a segment defined by two pointsaandb.- Parameters:
- p
List List of
[x, y, z]coordinates for the reference pointp.- a
List List of
[x, y, z]coordinates for the first point of the segment.- b
List List of
[x, y, z]coordinates for the second point of the segment.
- p
- Returns:
floatDistance between the point and the segment.