Ark Server API (ASA) - Wiki
Loading...
Searching...
No Matches
FBoxCenterAndExtent Class Reference

#include <Base.h>

+ Collaboration diagram for FBoxCenterAndExtent:

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

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

Detailed Description

An unquantized bounding box.

Definition at line 179 of file Base.h.

Member Typedef Documentation

◆ FReal

Constructor & Destructor Documentation

◆ FBoxCenterAndExtent() [1/5]

FBoxCenterAndExtent::FBoxCenterAndExtent ( )
inline

Default constructor.

Definition at line 50 of file GenericOctree.h.

◆ FBoxCenterAndExtent() [2/5]

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

Initialization constructor.

Definition at line 53 of file GenericOctree.h.

◆ FBoxCenterAndExtent() [3/5]

FBoxCenterAndExtent::FBoxCenterAndExtent ( const FBox & Box)
inline

FBox conversion constructor.

Definition at line 59 of file GenericOctree.h.

◆ FBoxCenterAndExtent() [4/5]

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

FBoxSphereBounds conversion constructor.

Definition at line 69 of file GenericOctree.h.

◆ FBoxCenterAndExtent() [5/5]

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

Center - radius as four contiguous floats conversion constructor.

Definition at line 77 of file GenericOctree.h.

Member Function Documentation

◆ GetBox()

FBox FBoxCenterAndExtent::GetBox ( ) const
inline

Converts to a FBox.

Definition at line 84 of file GenericOctree.h.

Friends And Related Symbol Documentation

◆ Intersect [1/3]

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

Returns
true if the boxes intersect, or false.

Definition at line 94 of file GenericOctree.h.

◆ Intersect [2/3]

FORCEINLINE 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.

Definition at line 130 of file GenericOctree.h.

◆ Intersect [3/3]

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

Returns
true if the boxes intersect, or false.

Definition at line 112 of file GenericOctree.h.

Member Data Documentation

◆ Center

FVector4 FBoxCenterAndExtent::Center

Definition at line 46 of file GenericOctree.h.

◆ Extent

FVector4 FBoxCenterAndExtent::Extent

Definition at line 47 of file GenericOctree.h.


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