Function sdl2_sys::SDL_IntersectFRect

source ยท
pub unsafe extern "C" fn SDL_IntersectFRect(
    A: *const SDL_FRect,
    B: *const SDL_FRect,
    result: *mut SDL_FRect,
) -> SDL_bool
Expand description

Calculate the intersection of two rectangles with float precision.

If result is NULL then this function will return SDL_FALSE.

\param A an SDL_FRect structure representing the first rectangle \param B an SDL_FRect structure representing the second rectangle \param result an SDL_FRect 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.22.

\sa SDL_HasIntersectionF