The MHD equilibrium equation that describes plasmas rotating in the toroidal direction is solved using the Solov'ev ansatz. The equilibria have 2 X-points and the shape of the plasma can be controlled by fixing the values of the aspect ratio, elongation, triangularity, squareness and curvature at the equatorial points. The plasma current, total β and Mach number can be also specified. Examples of equilibria with positive and negative triangularity and different values of the squareness and Mach number are presented.