Determine whether two rectangles intersect.
Defined in <SDL3/SDL_rect.h>
bool SDL_HasRectIntersection(const SDL_Rect *A, const SDL_Rect *B);
const SDL_Rect * | A | an SDL_Rect structure representing the first rectangle. |
const SDL_Rect * | B | an SDL_Rect structure representing the second rectangle. |
(bool) Returns true if there is an intersection, false otherwise.
If either pointer is NULL the function will return false.
It is safe to call this function from any thread.
This function is available since SDL 3.1.3.