UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FOrientedBox Struct Reference

#include <OrientedBox.h>

Public Member Functions

 FOrientedBox ()
 
void CalcVertices (FVector *Verts) const
 
FFloatInterval Project (const FVector &Axis) const
 

Public Attributes

FVector Center
 
FVector AxisX
 
FVector AxisY
 
FVector AxisZ
 
FVector::FReal ExtentX
 
FVector::FReal ExtentY
 
FVector::FReal ExtentZ
 

Detailed Description

Structure for arbitrarily oriented boxes (not necessarily axis-aligned).

Constructor & Destructor Documentation

◆ FOrientedBox()

FOrientedBox::FOrientedBox ( )
inline

Default constructor.

Constructs a unit-sized, origin-centered box with axes aligned to the coordinate system.

Member Function Documentation

◆ CalcVertices()

void FOrientedBox::CalcVertices ( FVector Verts) const
inline

Fills in the Verts array with the eight vertices of the box.

Parameters
VertsThe array to fill in with the vertices.

◆ Project()

FFloatInterval FOrientedBox::Project ( const FVector Axis) const
inline

Finds the projection interval of the box when projected onto Axis.

Parameters
AxisThe unit vector defining the axis to project the box onto.

Member Data Documentation

◆ AxisX

FVector FOrientedBox::AxisX

Holds the x-axis vector of the box. Must be a unit vector.

◆ AxisY

FVector FOrientedBox::AxisY

Holds the y-axis vector of the box. Must be a unit vector.

◆ AxisZ

FVector FOrientedBox::AxisZ

Holds the z-axis vector of the box. Must be a unit vector.

◆ Center

FVector FOrientedBox::Center

Holds the center of the box.

◆ ExtentX

FVector::FReal FOrientedBox::ExtentX

Holds the extent of the box along its x-axis.

◆ ExtentY

FVector::FReal FOrientedBox::ExtentY

Holds the extent of the box along its y-axis.

◆ ExtentZ

FVector::FReal FOrientedBox::ExtentZ

Holds the extent of the box along its z-axis.


The documentation for this struct was generated from the following file: