128 frect->
x = (float)rect->
x;
129 frect->
y = (
float)rect->
y;
130 frect->
w = (float)rect->
w;
131 frect->
h = (
float)rect->
h;
157 return ( p && r && (p->
x >= r->
x) && (p->
x < (r->
x + r->
w)) &&
158 (p->
y >= r->
y) && (p->
y < (r->
y + r->
h)) ) ?
true :
false;
181 return ((!r) || (r->
w <= 0) || (r->
h <= 0)) ?
true :
false;
205 return (a && b && (a->
x == b->
x) && (a->
y == b->
y) &&
206 (a->
w == b->
w) && (a->
h == b->
h)) ?
true :
false;
322 return ( p && r && (p->
x >= r->
x) && (p->
x <= (r->
x + r->
w)) &&
323 (p->
y >= r->
y) && (p->
y <= (r->
y + r->
h)) ) ?
true :
false;
346 return ((!r) || (r->
w < 0.0f) || (r->
h < 0.0f)) ?
true :
false;
376 return (a && b && ((a == b) ||
SDL_FORCE_INLINE void SDL_RectToFRect(const SDL_Rect *rect, SDL_FRect *frect)
bool SDL_GetRectIntersectionFloat(const SDL_FRect *A, const SDL_FRect *B, SDL_FRect *result)
bool SDL_GetRectIntersection(const SDL_Rect *A, const SDL_Rect *B, SDL_Rect *result)
bool SDL_GetRectEnclosingPoints(const SDL_Point *points, int count, const SDL_Rect *clip, SDL_Rect *result)
bool SDL_GetRectUnionFloat(const SDL_FRect *A, const SDL_FRect *B, SDL_FRect *result)
bool SDL_HasRectIntersectionFloat(const SDL_FRect *A, const SDL_FRect *B)
SDL_FORCE_INLINE bool SDL_RectEmptyFloat(const SDL_FRect *r)
SDL_FORCE_INLINE bool SDL_RectsEqualFloat(const SDL_FRect *a, const SDL_FRect *b)
SDL_FORCE_INLINE bool SDL_RectsEqual(const SDL_Rect *a, const SDL_Rect *b)
SDL_FORCE_INLINE bool SDL_RectEmpty(const SDL_Rect *r)
bool SDL_GetRectAndLineIntersectionFloat(const SDL_FRect *rect, float *X1, float *Y1, float *X2, float *Y2)
SDL_FORCE_INLINE bool SDL_PointInRectFloat(const SDL_FPoint *p, const SDL_FRect *r)
bool SDL_GetRectEnclosingPointsFloat(const SDL_FPoint *points, int count, const SDL_FRect *clip, SDL_FRect *result)
bool SDL_GetRectAndLineIntersection(const SDL_Rect *rect, int *X1, int *Y1, int *X2, int *Y2)
SDL_FORCE_INLINE bool SDL_RectsEqualEpsilon(const SDL_FRect *a, const SDL_FRect *b, float epsilon)
bool SDL_GetRectUnion(const SDL_Rect *A, const SDL_Rect *B, SDL_Rect *result)
SDL_FORCE_INLINE bool SDL_PointInRect(const SDL_Point *p, const SDL_Rect *r)
bool SDL_HasRectIntersection(const SDL_Rect *A, const SDL_Rect *B)