I was going through computational geometry problems and encountered the following problem, and couldn't come up with an answer.
What I want is: Given a fixed width W, I need to rotate a simple 2D polygon with n points such that it width won't exceed W, and to get a minimum height polygon.
I can start rotating the polygon and check for its height and width each time, but obviously this will be very expensive and inaccurate..
I found this answer, but it's for convex polygons and without the width limitations and couldn't figure how(if possible) to do the necessary adjustments
Any suggestions?