Skip to main content

ClosestLine

Callable


  • Finds the closes line between 2 line segments, were the magnitude of u, v are the lengths of each segment L1 = P(s) = p0 + s * u, where s is time and p0 is the start of the line L2 = Q(t) = q0 + t * v, where t is time and q0 is the start of the line


    Parameters

    • p0: Vector

      Point where L1 begins

    • u: Vector

      Direction and length of L1

    • q0: Vector

      Point were L2 begins

    • v: Vector

      Direction and length of L2

    Returns LineSegment