Function Rect.hasIntersection

Wraps SDL_HasIntersection which sees whether two dsdl2.Rects intersect each other

bool hasIntersection (
  Rect other
) @trusted const;

Parameters

NameDescription
other other dsdl2.Rect to check its intersection of with the dsdl2.Rect

Returns

true if both have intersection with each other, otherwise false