point_segment_distance#
- static GeometryOperators.point_segment_distance(p, a, b)#
Calculate the distance between a point
p
and a segment defined by two pointsa
andb
.- 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:
float
Distance between the point and the segment.