Function sdl2_sys::SDL_EncloseFPoints
source ยท pub unsafe extern "C" fn SDL_EncloseFPoints(
points: *const SDL_FPoint,
count: c_int,
clip: *const SDL_FRect,
result: *mut SDL_FRect,
) -> SDL_bool
Expand description
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.
\param points an array of SDL_FPoint structures representing points to be
enclosed
\param count the number of structures in the points
array
\param clip an SDL_FRect used for clipping or NULL to enclose all points
\param result an SDL_FRect structure filled in with the minimal enclosing
rectangle
\returns SDL_TRUE if any points were enclosed or SDL_FALSE if all the
points were outside of the clipping rectangle.
\since This function is available since SDL 2.0.22.