This allows in-place conversion between z-up and y-up, by passing the same variable to both arguments.