Navigation
API > API/Runtime > API/Runtime/GeometryCore > API/Runtime/GeometryCore/CompGeom
References
| Module | GeometryCore |
| Header | /Engine/Source/Runtime/GeometryCore/Public/CompGeom/FitOrientedBox2.h |
| Include | #include "CompGeom/FitOrientedBox2.h" |
namespace UE
{
namespace Geometry
{
template<typename RealType>
TOrientedBox2 < RealType > UE::Geometry::FitOrientedBox2ConvexHull
(
int32 NumPts,
TFunctionRef < TVector2 < RealType >)> GetHullPt,
EBox2FitCriteria FitMethod
)
}
}
Remarks
Use the rotating calipers algorithm to find a best-fit oriented bounding box of a convex hull. A best-fit TOrientedBox2 that contains the points
Parameters
| Name | Description |
|---|---|
| NumPts | Number of points in the convex hull |
| GetHullPt | Function(hull point index) -> hull point |
| FitMethod | What criteria to optimize |