Best approximate a rectangle (aligned with principal axis) from a oriented rectangle with given coordinates and orientation?

Правка en1, от lone-_-wolf, 2020-05-04 22:39:29

I have a rectangle (x1,y1),(x2,y2),(x3,y3),(x4,y4) and an orientation angle (call it L).Now i want to best approximate a rectangle whose axis are aligned in parallel with x and y axis and has the most overlapping area with the original rectangle.How to do it?

Note:In output , just need the width and height of the new aligned rectangle


  Rev. Язык Кто Когда Δ Комментарий
en1 Английский lone-_-wolf 2020-05-04 22:39:29 466 Initial revision (published)