Function FRect.hasLineIntersection

Wraps SDL_IntersectFRectAndLine (from SDL 2.0.22) which sees whether a line intersects with the dsdl.FRect

bool hasLineIntersection (
  FPoint[2] line
) @trusted const;

Parameters

NameDescription
line set of two dsdl.FPoints denoting the start and end coordinates of the line to check its intersection of with the dsdl.FRect

Returns

true if it intersects, otherwise false