Flip coordinates in cpp rather than rb script.