isPointOnLineSegment

isPointOnLineSegment()
isPointOnLineSegment(p0: Point3, p1: Point3, point: Point3, epsilon: number): boolean

Determine if the point is both on the line formed by p0-p1, and within the p0-p1 line-segment endpoints

Parameters

p0: Point3

First point of the line segment

p1: Point3

Second point of the line segment

point: Point3

Point that possibly lies on the line segment.

epsilon: number

Epsilon value used with point-on-line distance calculation.

Returns: boolean