Function FRect.hasIntersection

Wraps SDL_HasIntersectionF (from SDL 2.0.22) which sees whether two dsdl.FRects intersect each other

bool hasIntersection (
  FRect rect
) @trusted const;

Parameters

NameDescription
rect other dsdl.FRect to check its intersection of with the dsdl.FRect

Returns

true if both have intersection with each other, otherwise false