Function FRect.hasIntersection

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

bool hasIntersection (
  FRect rect
) @trusted const;

Parameters

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

Returns

true if both have intersection with each other, otherwise false