sf::FloatRect rect(10.0f, 20.0f, 30.0f, 40.0f);
if (rect.contains(25.0f, 30.0f)) { // the point (25,30) is inside the rectangle }
float x = rect.left; float y = rect.top;This gets the X and Y coordinates of the top-left corner of the rectangle. Overall, FloatRect is a useful class in SFML for representing rectangles with floating-point coordinates.