class SFML::Transform

A 2D affine transformation. Wraps the 3Γ—3 matrix that SFML uses to combine translation, rotation, scaling, and skew. Useful when you want to:

t = SFML::Transform.identity .translate([400, 300]) .rotate(30) .scale([2, 2])

t.transform_point([10, 0]) #=> Vector2(world coord after t) inv = t.inverse #=> reverse mapping

Methods are chainable and mutate in place, returning self. To work with a fresh copy use t.dup. The CSFML constant for the identity is exposed via Transform.identity.