Function GeometrySingleton.lineIntersectsLine2d

Checks if the two lines (from_a, dir_a) and (from_b, dir_b) intersect. If yes, return the point of intersection as Vector2. If no intersection takes place, returns an empty Variant. Note: The lines are specified using direction vectors, not end points.

Variant lineIntersectsLine2d (
  const(Vector2) from_a,
  const(Vector2) dir_a,
  const(Vector2) from_b,
  const(Vector2) dir_b
) nothrow @nogc;