FOrientedBox

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

Windows
MacOS
Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Math/OrientedBox.h

Include

#include "Math/OrientedBox.h"

Syntax

struct FOrientedBox

Remarks

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

Variables

Name Description

Public variable

FVector

 

AxisX

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

Public variable

FVector

 

AxisY

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

Public variable

FVector

 

AxisZ

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

Public variable

FVector

 

Center

Holds the center of the box.

Public variable

float

 

ExtentX

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

Public variable

float

 

ExtentY

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

Public variable

float

 

ExtentZ

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

Constructors

Name Description

Public function

FOrientedBox()

Default constructor.

Functions

Name Description

Public function Const

void

 

CalcVertices

(
    FVector* Verts
)

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

Public function Const

FFloatInterv...

 

Project

(
    const FVector& Axis
)

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

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