Add 2D transformation class.