FSphere

Syntax

class FSphere

Remarks

Implements a basic sphere.

Variables

Name Description

Public variable

FVector

 

Center

The sphere's center point.

Public variable

float

 

W

The sphere's radius.

Constructors

Name Description

Public function

FSphere()

Default constructor (no initialization).

Public function

FSphere

(
    int32
)

Creates and initializes a new sphere.

Public function

FSphere

(
    EForceInit
)

Constructor.

Public function

FSphere

(
    FVector InV,
    float InW
)

Creates and initializes a new sphere with the specified parameters.

Public function

FSphere

(
    const FVector * Pts,
    int32 Count
)

Constructor.

Functions

Name Description

Public function

bool

 

Equals

(
    const FSphere & Sphere,
    float Tolerance
)

Check whether two spheres are the same within specified tolerance.

Public function

[CORE_API](API\Runtime\Core\Misc\CORE_API_1) flo...

 

GetVolume()

Get volume of the current sphere

Volume (in Unreal units).

Public function

bool

 

Intersects

(
    const FSphere & Other,
    float Tolerance
)

Test whether this sphere intersects another.

true if spheres intersect, false otherwise.

Public function

bool

 

IsInside

(
    const FSphere & Other,
    float Tolerance
)

Check whether sphere is inside of another.

true if sphere is inside another, otherwise false.

Public function

bool

 

IsInside

(
    const FVector & In,
    float Tolerance
)

Checks whether the given location is inside this sphere.

true if location is inside this volume.

Public function

[CORE_API](API\Runtime\Core\Misc\CORE_API_1)FSph ...

 

TransformBy

(
    const FMatrix & M
)

Get result of Transforming sphere by Matrix.

Public function

[CORE_API](API\Runtime\Core\Misc\CORE_API_1)FSph ...

 

TransformBy

(
    const FTransform & M
)

Get result of Transforming sphere with Transform.

Result of transformation.

Operators

Name Description

Public function

FSphere

 

operator+

(
    const FSphere & Other
)

Gets the result of addition to this bounding volume.

A new bounding volume.

Public function

[CORE_API](API\Runtime\Core\Misc\CORE_API_1)FSph ...

 

operator+=

(
    const FSphere & Other
)

Adds to this bounding box to include a new bounding volume.

References

Module

Core

Header

Runtime/Core/Public/Math/Sphere.h