SDL_GetRectIntersection

Calculate the intersection of two rectangles.

If result is NULL then this function will return false.

extern (C) nothrow @nogc extern
bool
SDL_GetRectIntersection
(
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.

result SDL_Rect*

an SDL_Rect structure filled in with the intersection of rectangles A and B.

Return Value

Type: bool

true if there is an intersection, false otherwise.

See Also

Meta