Function getLineSegmentsIntersectionFraction

  • Get the intersection fraction between two line segments. If successful, the intersection is at p0 + t * (p1 - p0)

    Parameters

    Returns number

    A number between 0 and 1 if there was an intersection, otherwise -1.