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 that the lines are specified using direction vectors, not end points.

struct GeometrySingleton
@nogc nothrow
Variant
lineIntersectsLine2d
(
in Vector2 from_a
,
in Vector2 dir_a
,
in Vector2 from_b
,
in Vector2 dir_b
)

Meta