Checks if a point lies on a line segment.
The point to check.
An array representing the line segment [start, end].
true if the point lies on the segment, otherwise false.
true
false
Checks if a point lies on a line segment.