Is it possible to find the width and starting coordinates of the biggest horizontal rectangle of a fixed height inscribed in a given sector with any angle?
This is actually to do with computer programming. I am creating a pie chart and the rectangle is supposed to hold a label relating to the information represented by the sector. I can measure the width of the text(of constant height) that I want to place within the rectangle. If I can find the width of the widest horizontally placed rectangle of a given height, I can decide if the label would fit completely within the sector. If not, it would need to be moved outside of the circle. The sector has a variable angle as in a pie chart different sectors have different angles.
I am not too good at geometry, so I thought of asking here. Please let me know if any other information is required.