My friend an I were struggling to orient a couch correctly during a move. We were struggling to fit it through a door. So we wrote an app called "Will it fit"
You took a picture of the piece of furniture side on. Then you could tap to draw a polygon over the image. The app would then rotate the polygon to find the orientation with the minimum width.