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:
- 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.- tol
float
Linear tolerance. The default value is
1e-6
.
- p
- Returns:
- bool
True
when the point lies on the segment defined by the two points,False
otherwise.