logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

SDL_GetRectIntersectionFloat - Calculate the intersection of two rectangles with float precision.

Availability

       This function is available since SDL 3.2.0.

Description

       If result is NULL then this function will return false.

Function Parameters

A      an SDL_FRect structure representing the first rectangle.

       B      an SDL_FRect structure representing the second rectangle.

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

Name

       SDL_GetRectIntersectionFloat - Calculate the intersection of two rectangles with float precision.

Return Value

       Returns true if there is an intersection, false otherwise.

See Also

SDL_HasRectIntersectionFloat(3)

Simple Directmedia Layer                           SDL 3.2.20                    SDL_GetRectIntersectionFloat(3)

Synopsis

#include<SDL3/SDL_rect.h>boolSDL_GetRectIntersectionFloat(constSDL_FRect*A,constSDL_FRect*B,SDL_FRect*result);

See Also