Skip to main content

SDL_HasRectIntersection

Function SDL_HasRectIntersection 

Source
pub unsafe extern "C" fn SDL_HasRectIntersection(
    A: *const SDL_Rect,
    B: *const SDL_Rect,
) -> bool
Expand description

Determine whether two rectangles intersect.

If either pointer is NULL the function will return false.

Parameter: A an SDL_Rect structure representing the first rectangle. Parameter: B an SDL_Rect structure representing the second rectangle. Returns: true if there is an intersection, false otherwise.

Thread Safety: It is safe to call this function from any thread.

Available Since: This function is available since SDL 3.2.0.

See Also: SDL_GetRectIntersection