UKismetMathLibrary::MinimumAreaRectangle

Geometry Finds the minimum area rectangle that encloses all of the points in InVerts Uses algorithm found in [http://www.geometrictools.com/Documentation/MinimumAreaRectangle.pdf](http://www.geometrictools.com/Documentation/MinimumAreaRectangle.pdf)

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Kismet/KismetMathLibrary.h

Include

#include "Kismet/KismetMathLibrary.h"

Source

/Engine/Source/Runtime/Engine/Private/KismetMathLibrary.cpp

Syntax

static void MinimumAreaRectangle
(
    UObject * WorldContextObject,
    const TArray< FVector > & InVerts,
    const FVector & SampleSurfaceNormal,
    FVector & OutRectCenter,
    FRotator & OutRectRotation,
    float & OutSideLengthX,
    float & OutSideLengthY,
    bool bDebugDraw
)

Remarks

Geometry Finds the minimum area rectangle that encloses all of the points in InVerts Uses algorithm found in http://www.geometrictools.com/Documentation/MinimumAreaRectangle.pdf

Parameters

Parameter

Description

InVerts

Points to enclose in the rectangle OutRectCenter - Center of the enclosing rectangle OutRectSideA - Vector oriented and sized to represent one edge of the enclosing rectangle, orthogonal to OutRectSideB OutRectSideB - Vector oriented and sized to represent one edge of the enclosing rectangle, orthogonal to OutRectSideA

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss