Function SDL_HasRectIntersection
pub unsafe extern "C" fn SDL_HasRectIntersection(
A: *const SDL_Rect,
B: *const SDL_Rect,
) -> bool
Available on crate feature
dep_sdl3
only.Expand description
Determine whether two rectangles intersect.
If either pointer is NULL the function will return false.
§Parameters
A
: anSDL_Rect
structure representing the first rectangle.B
: anSDL_Rect
structure representing the second rectangle.
§Return value
Returns true if there is an intersection, false otherwise.
§Thread safety
It is safe to call this function from any thread.
§Availability
This function is available since SDL 3.2.0.