/Engine/Source/Runtime/GeometryCore/Public/CompGeom/FitOrientedBox2.h
Use the rotating calipers algorithm to find a best-fit oriented bounding box of a simple polygon. Note the polygon should not be self-intersecting. O(n) in the number of points.
A best-fitTOrientedBox2that contains the points
namespace UE { namespace Geometry { template<typename RealType> [TOrientedBox2](API\Runtime\GeometryCore\TOrientedBox2)< RealType > UE::Geometry::FitOrientedBox2SimplePolygon ( [TArrayView](API\Runtime\Core\Containers\TArrayView)< const [TVector2](API\Runtime\Core\Math\TVector2)< RealType >> Polygon, [EBox2FitCriteria](API\Runtime\GeometryCore\CompGeom\UE__Geometry__EBox2FitCriteria) FitMethod ) } }