sf::Rect is very simple, you can copy and paste it in your project. sf::ConvexShape is more complex and has dependencies on other classes of the graphics module, since it's a drawable entity. But why do you need it for collision detection? It only provides functions for drawing, nothing for collision/computations.