SDL_GetRectEnclosingPointsFloat3
Calculate a minimal rectangle enclosing a set of points with float precision.
Usage
#include "SDL3/SDL.h"
bool SDL_GetRectEnclosingPointsFloat(const SDL_FPoint *points, int count, const SDL_FRect *clip, SDL_FRect *result);
Header file
Defined in SDL3/SDL_rect.h
Overview
If clip is not NULL then only points inside of the clipping rectangle are considered.
Function parameters
points
|
an array of |
|---|---|
count
|
the number of structures in the |
clip
|
an |
result
|
an |
Return value
Returns true if any points were enclosed or false if all the points were outside of the clipping rectangle.