• Parameters

    • __namedParameters: VecLine2
    • point: [number, number] | [number, number, number]

      one 2D point

    • lineDomain: ((_, __?) => boolean) = includeL
        • (_, __?): boolean
        • Parameters

          • _: number

            the number to test against

          • Optional __: number

            an optional epsilon

          Returns boolean

    • Optional epsilon: number = EPSILON

      an optional epsilon

    Returns boolean

    is the point collinear to the line, and in the case of ray/segment, does the point lie within the bounds of the ray/segment?

    Description

    check if a point lies collinear along a line, and specify if the line is a line/ray/segment and test whether the point lies within endpoint(s).

    Parma

    [lineDomain=includeL] the domain of the line