Creates and initializes a new box from the given set of points.
Math/Box.h
TBox()
Description
Default constructor. Creates a new box with uninitialized extents and marks it as invalid.
NOTE: This default constructor is unlike TVector, TMatrix etc. in that it actually initializes the instance. Ideally it should be = default; in the same way, but this would break backwards compatibility. It might be possible if the questionable IsValid field ever gets removed. To be consistent with other engine core types (i.e. Vector) the other members are not initialized since there is not meaningful default values.
Name
TBox
Type
function
Header File
/Engine/Source/Runtime/Core/Public/Math/Box.h
Include Path
#include "Math/Box.h"
constexpr TBox()
TBox(ENoInit)
Description
Creates a new box without initialization.
Name
TBox
Type
function
Header File
/Engine/Source/Runtime/Core/Public/Math/Box.h
Include Path
#include "Math/Box.h"
constexpr TBox
(
ENoInit
)
TBox(EForceInit)
Description
Creates and initializes a new box with zero extent and marks it as invalid.
Name
TBox
Type
function
Header File
/Engine/Source/Runtime/Core/Public/Math/Box.h
Include Path
#include "Math/Box.h"
constexpr TBox
(
EForceInit
)
TBox(const TArray< TVector< T > > &)
Description
Creates and initializes a new box from an array of points.
Name
TBox
Type
function
Header File
/Engine/Source/Runtime/Core/Public/Math/Box.h
Include Path
#include "Math/Box.h"
TBox
(
const TArray < TVector < T > > & Points
)
Parameters
Name
Remarks
Points
Array of Points to create for the bounding volume.
TBox(const TBox< FArg > &)
Description
Conversion from other type.
Name
TBox
Type
function
Header File
/Engine/Source/Runtime/Core/Public/Math/Box.h
Include Path
#include "Math/Box.h"
template<typename FArg, std::enable_if_t<(!std::is_same_v< T, FArg >), int >>
TBox
(
const TBox < FArg > & From
)
TBox(const TSphere< T > &)
Description
Creates and initializes a box that tightly encloses the given sphere.