SDL_HasRectIntersection3
Determine whether two rectangles intersect.
Usage
#include "SDL3/SDL.h"
bool SDL_HasRectIntersection(const SDL_Rect *A, const SDL_Rect *B);
Header file
Defined in SDL3/SDL_rect.h
Overview
If either pointer is NULL the function will return false.
Function parameters
A
|
an |
|---|---|
B
|
an |
Return value
Returns true if there is an intersection, false otherwise.
Thread safety
It is safe to call this function from any thread.