Navigation
Unreal Engine C++ API Reference > Runtime > Core > Math
References
Module | Core |
Header | /Engine/Source/Runtime/Core/Public/Math/BoxSphereBounds.h |
Include | #include "Math/BoxSphereBounds.h" |
Syntax
template<typename T, typename TExtent>
struct TBoxSphereBounds
Variables
Type | Name | Description | |
---|---|---|---|
![]() |
TVector< TExtent > | BoxExtent | Holds the extent of the bounding box. |
![]() |
TVector< T > | Origin | Holds the origin of the bounding box and sphere. |
![]() |
TExtent | SphereRadius | Holds the radius of the bounding sphere. |
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
Default constructor. | ||
![]() |
TBoxSphereBounds
(
EForceInit |
Creates and initializes a new instance. | |
![]() |
TBoxSphereBounds
(
const TBox< T >& Box |
Creates and initializes a new instance the given Box. | |
![]() |
TBoxSphereBounds
(
const TSphere< T >& Sphere |
Creates and initializes a new instance for the given sphere. | |
![]() |
TBoxSphereBounds
(
const TBoxSphereBounds< TFrom, TExtentFrom >& From |
Conversion to other type. | |
![]() |
TBoxSphereBounds
(
const TBox< T >& Box, |
Creates and initializes a new instance from the given Box and Sphere. | |
![]() |
TBoxSphereBounds
(
const TVector< T >* Points, |
Creates and initializes a new instance from the given set of points. | |
![]() |
TBoxSphereBounds
(
const TVector< T >& InOrigin, |
Creates and initializes a new instance from the specified parameters. |
Functions
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
bool | BoxesIntersect
(
const TBoxSphereBounds< T, TExtent >& A, |
Test whether the boxes from two BoxSphereBounds intersect/overlap. |
![]() ![]() |
T | ComputeSquaredDistanceFromBoxToPoint
(
const TVector< T >& Point |
Calculates the squared distance from a point to a bounding box |
![]() ![]() |
bool | ContainsNaN () |
|
![]() ![]() |
void | ||
![]() ![]() |
TBoxSphereBounds< T, TExtent > | ExpandBy
(
TExtent ExpandAmount |
Increase the size of the box and sphere by a given size. |
![]() ![]() |
TBox< T > | GetBox () |
Gets the bounding box. |
![]() ![]() |
TVector< T > | GetBoxExtrema
(
uint32 Extrema |
Gets the extrema for the bounding box. |
![]() ![]() |
TSphere< T > | GetSphere () |
Gets the bounding sphere. |
![]() |
bool | ||
![]() |
bool | SerializeFromMismatchedTag
(
FName StructTag, |
|
![]() ![]() |
bool | SpheresIntersect
(
const TBoxSphereBounds< T, TExtent >& A, |
Test whether the spheres from two BoxSphereBounds intersect/overlap. |
![]() ![]() |
FString | ToString () |
Get a textual representation of this bounding box. |
![]() ![]() |
TBoxSphereBounds< T, TExtent > | TransformBy
(
const TMatrix< T >& M |
Gets a bounding volume transformed by a matrix. |
![]() ![]() |
TBoxSphereBounds< T, TExtent > | TransformBy
(
const TTransform< T >& M |
Gets a bounding volume transformed by a FTransform object. |
Operators
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
bool | operator!=
(
const TBoxSphereBounds< T, TExtent >& Other |
Compare bounding volume this and Other. |
![]() ![]() |
TBoxSphereBounds< T, TExtent > | operator+
(
const TBoxSphereBounds< T, TExtent >& Other |
Constructs a bounding volume containing both this and B. |
![]() ![]() |
bool | operator==
(
const TBoxSphereBounds< T, TExtent >& Other |
Compare bounding volume this and Other. |
Classes
Type | Name | Description | |
---|---|---|---|
![]() |
Builder | Utility class to build a TBoxSphereBounds by adding other math primitives. |
Typedefs
Name | Description |
---|---|
FReal |