UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FitOrientedBox2.h File Reference
#include "CoreMinimal.h"
#include "Math/Vector.h"
#include "VectorTypes.h"
#include "OrientedBoxTypes.h"

Go to the source code of this file.

Namespaces

namespace  UE
 
namespace  UE::Geometry
 

Enumerations

enum  UE::Geometry::EBox2FitCriteria { UE::Geometry::Area , UE::Geometry::Perimeter }
 

Functions

template<typename RealType >
TOrientedBox2< RealType > GEOMETRYCORE_API UE::Geometry::FitOrientedBox2Points (TArrayView< const TVector2< RealType > > Points, TFunctionRef< RealType(RealType, RealType)> FitFn)
 
template<typename RealType >
TOrientedBox2< RealType > UE::Geometry::FitOrientedBox2Points (TArrayView< const TVector2< RealType > > Points, EBox2FitCriteria FitMethod=EBox2FitCriteria::Area)
 
template<typename RealType >
TOrientedBox2< RealType > GEOMETRYCORE_API UE::Geometry::FitOrientedBox2SimplePolygon (TArrayView< const TVector2< RealType > > Polygon, TFunctionRef< RealType(RealType, RealType)> FitFn)
 
template<typename RealType >
TOrientedBox2< RealType > UE::Geometry::FitOrientedBox2SimplePolygon (TArrayView< const TVector2< RealType > > Polygon, EBox2FitCriteria FitMethod=EBox2FitCriteria::Area)
 
template<typename RealType >
TOrientedBox2< RealType > GEOMETRYCORE_API UE::Geometry::FitOrientedBox2ConvexHull (int32 NumPts, TFunctionRef< TVector2< RealType >(int32)> GetHullPt, TFunctionRef< RealType(RealType, RealType)> FitFn)
 
template<typename RealType >
TOrientedBox2< RealType > UE::Geometry::FitOrientedBox2ConvexHull (int32 NumPts, TFunctionRef< TVector2< RealType >(int32)> GetHullPt, EBox2FitCriteria FitMethod=EBox2FitCriteria::Area)