point_segment_distance#

static GeometryOperators.point_segment_distance(p, a, b)[source]#

Calculate the distance between a point p and a segment defined by two points a and b.

Parameters:
pList

List of [x, y, z] coordinates for the reference point p.

aList

List of [x, y, z] coordinates for the first point of the segment.

bList

List of [x, y, z] coordinates for the second point of the segment.

Returns:
float

Distance between the point and the segment.