Loading...
Searching...
No Matches
Rect.h
Go to the documentation of this file.
7// In no event will the authors be held liable for any damages arising from the use of this software.
73CSFML_GRAPHICS_API bool sfFloatRect_intersects(const sfFloatRect* rect1, const sfFloatRect* rect2, sfFloatRect* intersection);
74CSFML_GRAPHICS_API bool sfIntRect_intersects(const sfIntRect* rect1, const sfIntRect* rect2, sfIntRect* intersection);
bool sfFloatRect_contains(const sfFloatRect *rect, sfVector2f point)
Check if a point is inside a rectangle's area.
bool sfFloatRect_intersects(const sfFloatRect *rect1, const sfFloatRect *rect2, sfFloatRect *intersection)
Check intersection between two rectangles.
bool sfIntRect_contains(const sfIntRect *rect, sfVector2i point)
bool sfIntRect_intersects(const sfIntRect *rect1, const sfIntRect *rect2, sfIntRect *intersection)
sfFloatRect and sfIntRect are utility classes for manipulating rectangles.
Definition Rect.h:40