UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FBoxCenterAndExtent Class Reference

#include <GenericOctree.h>

Public Types

using FReal = FVector4::FReal
 

Public Member Functions

 FBoxCenterAndExtent ()
 
 FBoxCenterAndExtent (const FVector &InCenter, const FVector &InExtent)
 
 FBoxCenterAndExtent (const FBox &Box)
 
template<typename TExtent >
 FBoxCenterAndExtent (const UE::Math::TBoxSphereBounds< FReal, TExtent > &BoxSphere)
 
 FBoxCenterAndExtent (const float PositionRadius[4])
 
FBox GetBox () const
 

Public Attributes

FVector4 Center
 
FVector4 Extent
 

Friends

bool Intersect (const FBoxCenterAndExtent &A, const FBoxCenterAndExtent &B)
 
template<typename TExtent >
bool Intersect (const UE::Math::TBoxSphereBounds< FReal, TExtent > &A, const FBoxCenterAndExtent &B)
 
bool Intersect (const float A[4], const FBoxCenterAndExtent &B)
 

Detailed Description

An unquantized bounding box.

Member Typedef Documentation

◆ FReal

Constructor & Destructor Documentation

◆ FBoxCenterAndExtent() [1/5]

FBoxCenterAndExtent::FBoxCenterAndExtent ( )
inline

Default constructor.

◆ FBoxCenterAndExtent() [2/5]

FBoxCenterAndExtent::FBoxCenterAndExtent ( const FVector InCenter,
const FVector InExtent 
)
inline

Initialization constructor.

◆ FBoxCenterAndExtent() [3/5]

FBoxCenterAndExtent::FBoxCenterAndExtent ( const FBox Box)
inline

FBox conversion constructor.

◆ FBoxCenterAndExtent() [4/5]

template<typename TExtent >
FBoxCenterAndExtent::FBoxCenterAndExtent ( const UE::Math::TBoxSphereBounds< FReal, TExtent > &  BoxSphere)
inlineexplicit

FBoxSphereBounds conversion constructor.

◆ FBoxCenterAndExtent() [5/5]

FBoxCenterAndExtent::FBoxCenterAndExtent ( const float  PositionRadius[4])
inlineexplicit

Center - radius as four contiguous floats conversion constructor.

Member Function Documentation

◆ GetBox()

FBox FBoxCenterAndExtent::GetBox ( ) const
inline

Converts to a FBox.

Friends And Related Symbol Documentation

◆ Intersect [1/3]

bool Intersect ( const FBoxCenterAndExtent A,
const FBoxCenterAndExtent B 
)
friend

Determines whether two boxes intersect. Warning: this operates on the W of the bounds positions!

Returns
true if the boxes intersect, or false.

◆ Intersect [2/3]

bool Intersect ( const float  A[4],
const FBoxCenterAndExtent B 
)
friend

Determines whether two boxes intersect. Warning: this operates on the W of the bounds positions!

Parameters
Abox given in center - radius form as four contiguous floats
Returns
true if the boxes intersect, or false.

◆ Intersect [3/3]

template<typename TExtent >
bool Intersect ( const UE::Math::TBoxSphereBounds< FReal, TExtent > &  A,
const FBoxCenterAndExtent B 
)
friend

Determines whether two boxes intersect. Warning: this operates on the W of the bounds positions!

Returns
true if the boxes intersect, or false.

Member Data Documentation

◆ Center

FVector4 FBoxCenterAndExtent::Center

◆ Extent

FVector4 FBoxCenterAndExtent::Extent

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