[transformations] Rotate the rect around a center point