Transform.transformRect

Transform a rectangle.

Since SFML doesn't provide support for oriented rectangles, the result of this function is always an axis-aligned rectangle. Which means that if the transform contains a rotation, the bounding rectangle of the transformed rectangle is returned.

struct Transform
transformRect
const
()

Parameters

rect
Type: const(FloatRect)

Rectangle to transform

Return Value

Type: FloatRect

Transformed rectangle.

Meta