VR Expansion Plugin > VRExpansion Function Library > Non Authority Minimum Area Rectangle

Non Authority Minimum Area Rectangle

Finds the minimum area rectangle that encloses all of the points in InVerts
Engine default version is server only for some reason
Uses algorithm found in http://www.geometrictools.com/Documentation/MinimumAreaRectangle.pdf

Inputs

In
Exec

In Verts
Array of Vectors

Points to enclose in the rectangle

Sample Surface Normal
Vector (by ref)

Debug Draw
Boolean

Outputs

Out
Exec

Out Rect Center
Vector

Out Rect Rotation
Rotator

Out Side Length X
Float (single-precision)

Out Side Length Y
Float (single-precision)