SDL_GetRectUnionFloat - Calculate the union of two rectangles with float precision.
Contents
Availability
This function is available since SDL 3.2.0.
Simple Directmedia Layer SDL 3.2.10 SDL_GetRectUnionFloat(3)
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 union of rectangles A and B .
Header File
Defined in SDL3/SDL_rect.h
Name
SDL_GetRectUnionFloat - Calculate the union of two rectangles with float precision.
Return Value
Returns true on success or false on failure; call
SDL_GetError () for more information.
Synopsis
#include"SDL3/SDL.h"boolSDL_GetRectUnionFloat(constSDL_FRect*A,constSDL_FRect*B,SDL_FRect*result);
