How a door swing is determined