exhcange x and y coordinates so we have a right-handed viewing system