SDL_GetRectIntersectionFloat - Calculate the intersection of two rectangles with float precision.
Contents
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);
