How to find an arbitrarily oriented minimum bounding box in c++

后端 未结 5 814
不知归路
不知归路 2021-02-06 23:58

So let\'s say I have a list of N pairs of positive long coordinates (points).
How do I find the smallest rectangle containing all of them?
The rectangle can also have fl

5条回答
  •  猫巷女王i
    2021-02-07 00:37

    See http://www.geometrictools.com/Source/ComputationalGeometry.html

    The section "Minimum-area box" has various examples.

提交回复
热议问题