Navigation
API > API/Runtime > API/Runtime/Core
Structure for arbitrarily oriented boxes (not necessarily axis-aligned).
| Name | FOrientedBox |
| Type | struct |
| Header File | /Engine/Source/Runtime/Core/Public/Math/OrientedBox.h |
| Include Path | #include "Math/OrientedBox.h" |
Syntax
struct FOrientedBox
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FOrientedBox() |
Default constructor. | Math/OrientedBox.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| AxisX | FVector | Holds the x-axis vector of the box. Must be a unit vector. | Math/OrientedBox.h | |
| AxisY | FVector | Holds the y-axis vector of the box. Must be a unit vector. | Math/OrientedBox.h | |
| AxisZ | FVector | Holds the z-axis vector of the box. Must be a unit vector. | Math/OrientedBox.h | |
| Center | FVector | Holds the center of the box. | Math/OrientedBox.h | |
| ExtentX | FVector::FReal | Holds the extent of the box along its x-axis. | Math/OrientedBox.h | |
| ExtentY | FVector::FReal | Holds the extent of the box along its y-axis. | Math/OrientedBox.h | |
| ExtentZ | FVector::FReal | Holds the extent of the box along its z-axis. | Math/OrientedBox.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void CalcVertices
(
FVector* Verts |
Fills in the Verts array with the eight vertices of the box. | Math/OrientedBox.h | |
FFloatInterval Project
(
const FVector& Axis |
Finds the projection interval of the box when projected onto Axis. | Math/OrientedBox.h |