Function sdl2_sys::SDL_IntersectRect
source ยท pub unsafe extern "C" fn SDL_IntersectRect(
A: *const SDL_Rect,
B: *const SDL_Rect,
result: *mut SDL_Rect,
) -> SDL_bool
Expand description
Calculate the intersection of two rectangles.
If result
is NULL then this function will return SDL_FALSE.
\param A an SDL_Rect structure representing the first rectangle
\param B an SDL_Rect structure representing the second rectangle
\param result an SDL_Rect structure filled in with the intersection of
rectangles A
and B
\returns SDL_TRUE if there is an intersection, SDL_FALSE otherwise.
\since This function is available since SDL 2.0.0.
\sa SDL_HasIntersection