TBoxSphereBounds

Choose your operating system:

Windows

macOS

Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/CoreFwd.h

Include

#include "CoreFwd.h"

Syntax

template<typename T>
struct TBoxSphereBounds

Variables

Name Description

Public variable

TVector< T >

 

BoxExtent

Holds the extent of the bounding box.

Public variable

TVector< T >

 

Origin

Holds the origin of the bounding box and sphere.

Public variable

T

 

SphereRadius

Holds the radius of the bounding sphere.

Constructors

Name Description

Public function

TBoxSphereBounds()

Default constructor.

Public function

TBoxSphereBounds

(
    EForceInit
)

Creates and initializes a new instance.

Public function

TBoxSphereBounds

(
    const TBox< T >& Box
)

Creates and initializes a new instance the given Box.

Public function

TBoxSphereBounds

(
    const TSphere< T >& Sphere
)

Creates and initializes a new instance for the given sphere.

Public function

TBoxSphereBounds

(
    const TBoxSphereBounds< FArg >& Fr...
)

Conversion to other type.

Public function

TBoxSphereBounds

(
    const TBox< T >& Box,
    const TSphere< T >& Sphere
)

Creates and initializes a new instance from the given Box and Sphere.

Public function

TBoxSphereBounds

(
    const TVector< T >* Points,
    uint32 NumPoints
)

Creates and initializes a new instance from the given set of points.

Public function

TBoxSphereBounds

(
    const TVector< T >& InOrigin,
    const TVector< T >& InBoxExtent,
    T InSphereRadius
)

Creates and initializes a new instance from the specified parameters.

Functions

Name Description

Public function Static

bool

 

BoxesIntersect

(
    const TBoxSphereBounds< T >& A,
    const TBoxSphereBounds< T >& B
)

Test whether the boxes from two BoxSphereBounds intersect/overlap.

Public function Const

T

 

ComputeSquaredDistanceFromBoxToPoint

(
    const TVector< T >& Point
)

Calculates the squared distance from a point to a bounding box

Public function Const

bool

 

ContainsNaN()

Public function Const

void

 

DiagnosticCheckNaN()

Public function Const

TBoxSphereBo...

 

ExpandBy

(
    T ExpandAmount
)

Increase the size of the box and sphere by a given size.

Public function Const

TBox< T >

 

GetBox()

Gets the bounding box.

Public function Const

TVector< T >

 

GetBoxExtrema

(
    uint32 Extrema
)

Gets the extrema for the bounding box.

Public function Const

TSphere< T >

 

GetSphere()

Gets the bounding sphere.

Public function

bool

 

Serialize

(
    FArchive& Ar
)

Public function

bool

 

SerializeFromMismatchedTag

(
    FName StructTag,
    FArchive& Ar
)

Public function Static

bool

 

SpheresIntersect

(
    const TBoxSphereBounds< T >& A,
    const TBoxSphereBounds< T >& B,
    T Tolerance
)

Test whether the spheres from two BoxSphereBounds intersect/overlap.

Public function Const

FString

 

ToString()

Get a textual representation of this bounding box.

Public function Const

TBoxSphereBo...

 

TransformBy

(
    const TMatrix< T >& M
)

Gets a bounding volume transformed by a matrix.

Public function Const

TBoxSphereBo...

 

TransformBy

(
    const TTransform< T >& M
)

Gets a bounding volume transformed by a FTransform object.

Operators

Name Description

Public function Const

bool

 

operator!=

(
    const TBoxSphereBounds< T >& Other
)

Compare bounding volume this and Other.

Public function Const

TBoxSphereBo...

 

operator+

(
    const TBoxSphereBounds< T >& Other
)

Constructs a bounding volume containing both this and B.

Public function Const

bool

 

operator==

(
    const TBoxSphereBounds< T >& Other
)

Compare bounding volume this and Other.

Typedefs

Name

Description

FReal