2d transform class