Function Rect.hasIntersection

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

bool hasIntersection (
  Rect other
) @trusted const;

Parameters

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

Returns

true if both have intersection with each other, otherwise false