Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "Collision/ClosestLineJumpTable"

Index

Functions

Object literals

Functions

ClosestLine

  • 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 Line

Object literals

Const ClosestLineJumpTable

ClosestLineJumpTable: object

CircleCircleClosestLine

CircleEdgeClosestLine

EdgeEdgeClosestLine

PolygonCircleClosestLine

PolygonEdgeClosestLine

PolygonPolygonClosestLine