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.
79CSFML_GRAPHICS_API sfBool sfFloatRect_intersects(const sfFloatRect* rect1, const sfFloatRect* rect2, sfFloatRect* intersection);
80CSFML_GRAPHICS_API sfBool sfIntRect_intersects(const sfIntRect* rect1, const sfIntRect* rect2, sfIntRect* intersection);
sfVector2i sfIntRect_getSize(const sfIntRect *rect)
sfBool sfIntRect_intersects(const sfIntRect *rect1, const sfIntRect *rect2, sfIntRect *intersection)
sfBool sfIntRect_contains(const sfIntRect *rect, int x, int y)
sfBool sfFloatRect_contains(const sfFloatRect *rect, float x, float y)
Check if a point is inside a rectangle's area.
sfVector2f sfFloatRect_getSize(const sfFloatRect *rect)
Get the size of the rectangle.
sfVector2i sfIntRect_getPosition(const sfIntRect *rect)
sfVector2f sfFloatRect_getPosition(const sfFloatRect *rect)
Get the position of the rectangle's top-left corner.
sfBool sfFloatRect_intersects(const sfFloatRect *rect1, const sfFloatRect *rect2, sfFloatRect *intersection)
Check intersection between two rectangles.
sfFloatRect and sfIntRect are utility classes for manipulating rectangles.
Definition Rect.h:41