SDL_GetRectEnclosingPointsFloat

Calculate a minimal rectangle enclosing a set of points with float precision.

If clip is not NULL then only points inside of the clipping rectangle are considered.

extern (C) nothrow @nogc extern
bool
SDL_GetRectEnclosingPointsFloat

Parameters

points const(SDL_FPoint)*

an array of SDL_FPoint structures representing points to be enclosed.

count int

the number of structures in the points array.

clip const(SDL_FRect)*

an SDL_FRect used for clipping or NULL to enclose all points.

result SDL_FRect*

an SDL_FRect structure filled in with the minimal enclosing rectangle.

Return Value

Type: bool

true if any points were enclosed or false if all the points were outside of the clipping rectangle.

Meta