SDL_HasRectIntersection - Determine whether two rectangles intersect.
Contents
Availability
This function is available since SDL 3.2.0.
Description
If either pointer is NULL the function will return false.
Function Parameters
A an SDL_Rect
structure representing the first rectangle.
B an SDL_Rect
structure representing the second rectangle.
Header File
Defined in SDL3/SDL_rect.h
Name
SDL_HasRectIntersection - Determine whether two rectangles intersect.
Return Value
Returns true if there is an intersection, false otherwise.
See Also
•(3), SDL_GetRectIntersection(3) Simple Directmedia Layer SDL 3.2.10 SDL_HasRectIntersection(3)
Synopsis
#include"SDL3/SDL.h"boolSDL_HasRectIntersection(constSDL_Rect*A,constSDL_Rect*B);
Thread Safety
It is safe to call this function from any thread.
