SDL_HasRectIntersection

Determine whether two rectangles intersect.

If either pointer is NULL the function will return false.

extern (C) nothrow @nogc extern
bool
SDL_HasRectIntersection
(
const(SDL_Rect)* A
,
const(SDL_Rect)* B
)

Parameters

A const(SDL_Rect)*

an SDL_Rect structure representing the first rectangle.

B const(SDL_Rect)*

an SDL_Rect structure representing the second rectangle.

Return Value

Type: bool

true if there is an intersection, false otherwise.

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

\sa SDL_GetRectIntersection

Meta