Transform2d for RectangleContext