SDL_FRect.3type - Man Page

A rectangle stored using floating point values.

Synopsis

#include <SDL3/SDL_rect.h>

typedef struct SDL_FRect
{
    float x;
    float y;
    float w;
    float h;
} SDL_FRect;

Description

The origin of the coordinate space is in the top-left, with increasing values moving down and right. The properties x and y represent the coordinates of the top-left corner of the rectangle.

Availability

This struct is available since SDL 3.2.0.

See Also

SDL_RectEmptyFloat(3), SDL_RectsEqualFloat(3), SDL_RectsEqualEpsilon(3), SDL_HasRectIntersectionFloat(3), SDL_GetRectIntersectionFloat(3), SDL_GetRectAndLineIntersectionFloat(3), SDL_GetRectUnionFloat(3), SDL_GetRectEnclosingPointsFloat(3), SDL_PointInRectFloat(3)

Info

SDL 3.3.2 Simple Directmedia Layer SDL3 DATATYPES