is_between_points#

static GeometryOperators.is_between_points(p, a, b, tol=1e-06)#

Check if a point lies on the segment defined by two points.

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.

tolfloat

Linear tolerance. The default value is 1e-6.

Returns:
bool

True when the point lies on the segment defined by the two points, False otherwise.