These values may be swapped depending on how the user is holding the phone. But the computation that follows is symmetrical and computes the same result even if the values are exchanged, so we don't have to worry about the device orientation here.