TOrientedBox3

[TOrientedBox3](API\Plugins\GeometricObjects\TOrientedBox3) is a non-axis-aligned 3D box defined by a 3D frame and extents along the axes of that frame The frame is at the center of the box.

Windows
MacOS
Linux

References

Module

GeometricObjects

Header

/Engine/Plugins/Experimental/GeometryProcessing/Source/GeometricObjects/Public/OrientedBoxTypes.h

Include

#include "OrientedBoxTypes.h"

Syntax

template<typename RealType>
struct TOrientedBox3

Remarks

TOrientedBox3 is a non-axis-aligned 3D box defined by a 3D frame and extents along the axes of that frame The frame is at the center of the box.

Variables

Name Description

Public variable

FVector3< RealT...

 

Extents

Half-dimensions of box measured along the three axes

Public variable

TFrame3< RealTy...

 

Frame

3D position (center) and orientation (axes) of the box

Constructors

Name Description

Public function

TOrientedBox3()

Public function

TOrientedBox3

(
    const TAxisAlignedBox3< RealType > ...
)

Create oriented box from axis-aligned box

Public function

TOrientedBox3

(
    const FVector3< RealType >& Origin,
    const FVector3< RealType >& Extent...
)

Create axis-aligned box with given Origin and Extents

Public function

TOrientedBox3

(
    const TFrame3< RealType >& FrameIn,
    const FVector3< RealType >& Extent...
)

Create oriented box with given Frame and Extents

Functions

Name Description

Public function Const

FVector3< Re...

 

AxisX()

Public function Const

FVector3< Re...

 

AxisY()

Public function Const

FVector3< Re...

 

AxisZ()

Public function Const

FVector3< Re...

 

Center()

Public function

FVector3< Re...

 

ClosestPoint

(
    FVector3< RealType > Point
)

Find closest point on box

Public function Const

bool

 

Contains

(
    const FVector3< RealType >& Point
)

Public function Const

FVector3< Re...

 

Diagonal()

Public function

RealType

 

DistanceSquared

(
    FVector3< RealType > Point
)

Find squared distance to box.

Public function Const

void

 

EnumerateCorners

(
    PointFuncType CornerPointFunc
)

Call CornerPointFunc(FVector3) for each of the 8 box corners.

Public function Const

FVector3< Re...

 

GetAxis

(
    int AxisIndex
)

Public function Const

FVector3< Re...

 

GetCorner

(
    int Index
)

Corners [ (-x,-y), (x,-y), (x,y), (-x,y) ], -z, then +z

Public function Static

FIndex3i

 

GetCornerSide

(
    int Index
)

Get whether the corner at Index (see diagram in GetCorner documentation comment) is in the negative or positive direction for each axis

Public function Const

RealType

 

MaxExtent()

Public function Const

RealType

 

MinExtent()

Public function Const

bool

 

TestCorners

(
    PointPredicateType CornerPointPredi...
)

Call CornerPointPredicate(FVector3) for each of the 8 box corners, with early-out if any call returns false

Public function Static

TOrientedBox...

 

UnitPositive()

Public function Static

TOrientedBox...

 

UnitZeroCentered()

Public function Const

RealType

 

Volume()

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