An array of points? Do you mean the corners of the rectangle after transformations?
You can use the object's transform to transform the points yourself. The point without the transform can be found from the local bounding rectangle.
You could try something like this (untested):
sf::Transform transform = object.getTransform();
sf::FloatRect localRect = object.getLocalBounds();
std::vector<sf::Vector2f> points(4);
points[0] = transform.transformPoint(sf::Vector2f(localRect.left, localRect.top));
points[1] = transform.transformPoint(sf::Vector2f(localRect.left + localRect.width, localRect.top));
points[2] = transform.transformPoint(sf::Vector2f(localRect.left + localRect.width, localRect.top + localRect.height));
points[3] = transform.transformPoint(sf::Vector2f(localRect.left, localRect.top + localRect.height));
What I'm looking after is a vector with all the points inside the area of the rectangle.
something like this \/
sf::Vector2f p1 {10.f, 0}; // top-left point
sf::Vector2f p2 {0, 10.f}; // bottom-left point
sf::Vector2f p3 {10.f, 20.f}; // bottom-right point
sf::Vector2f p4 {20.f, 10.f}; // top-right point
// The 4 points above would make a rectangle at 45 degrees
std::vector<sf::Vector2i> rectangleAreaPoints = getPointsInsideRectangle(p1, p2, p3, p4);
I attached an image, well, I want all the pixels in the black area.
;D