FBoxSphereBounds

Syntax

struct FBoxSphereBounds

Remarks

Structure for a combined axis aligned bounding box and bounding sphere with the same origin. (28 bytes).

Variables

Name Description

Public variable

FVector

 

BoxExtent

Holds the extent of the bounding box.

Public variable

FVector

 

Origin

Holds the origin of the bounding box and sphere.

Public variable

float

 

SphereRadius

Holds the radius of the bounding sphere.

Constructors

Name Description

Public function

FBoxSphereBounds()

Default constructor.

Public function

FBoxSphereBounds

(
    EForceInit
)

Creates and initializes a new instance.

Public function

FBoxSphereBounds

(
    const FBox & Box
)

Creates and initializes a new instance the given Box.

Public function

FBoxSphereBounds

(
    const FSphere & Sphere
)

Creates and initializes a new instance for the given sphere.

Public function

FBoxSphereBounds

(
    const FBox & Box,
    const FSphere & Sphere
)

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

Public function

FBoxSphereBounds

(
    const FVector * Points,
    uint32 NumPoints
)

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

Public function

FBoxSphereBounds

(
    const FVector & InOrigin,
    const FVector & InBoxExtent,
    float InSphereRadius
)

Creates and initializes a new instance from the specified parameters.

Functions

Name Description

Public function Static

bool

 

BoxesIntersect

(
    const FBoxSphereBounds & A,
    const FBoxSphereBounds & B
)

Test whether the boxes from two BoxSphereBounds intersect/overlap.

Public function

float

 

ComputeSquaredDistanceFromBoxToPoint

(
    const FVector & Point
)

Calculates the squared distance from a point to a bounding box

The distance.

Public function

bool

 

ContainsNaN()

Public function

void

 

DiagnosticCheckNaN()

Public function

FBoxSphereBo ...

 

ExpandBy

(
    float ExpandAmount
)

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

A new box with the expanded size.

Public function

FBox

 

GetBox()

Gets the bounding box.

The bounding box.

Public function

FVector

 

GetBoxExtrema

(
    uint32 Extrema
)

Gets the extrema for the bounding box.

The boxes extrema

Public function

FSphere

 

GetSphere()

Gets the bounding sphere.

The bounding sphere.

Public function Static

bool

 

SpheresIntersect

(
    const FBoxSphereBounds & A,
    const FBoxSphereBounds & B,
    float Tolerance
)

Test whether the spheres from two BoxSphereBounds intersect/overlap.

Public function

FString

 

ToString()

Get a textual representation of this bounding box.

Text describing the bounding box.

Public function

CORE_APIFBox ...

 

TransformBy

(
    const FMatrix & M
)

Gets a bounding volume transformed by a matrix.

The transformed volume.

Public function

CORE_APIFBox ...

 

TransformBy

(
    const FTransform & M
)

Gets a bounding volume transformed by a FTransform object.

Operators

Name Description

Public function

FBoxSphereBo ...

 

operator+

(
    const FBoxSphereBounds & Other
)

Constructs a bounding volume containing both this and B.

The combined bounding volume.

References

Module

Core

Header

Runtime/Core/Public/Math/BoxSphereBounds.h