Using horizontal and vertical building structure to constrain indirect sensor orientation