Function GeometrySingleton.segmentIntersectsSegment2d

Checks if the two segments (from_a, to_a) and (from_b, to_b) intersect. If yes, return the point of intersection as Vector2. If no intersection takes place, returns an empty Variant.

Variant segmentIntersectsSegment2d (
  const(Vector2) from_a,
  const(Vector2) to_a,
  const(Vector2) from_b,
  const(Vector2) to_b
) nothrow @nogc;