TSphere

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 TSphere

Variables

Name Description

Public variable

TVector< T >

 

Center

The sphere's center point.

Public variable

T

 

W

The sphere's radius.

Constructors

Name Description

Public function

TSphere()

Default constructor (no initialization).

Public function

TSphere

(
    const TSphere< float >* Sphere...,
    int32 Count
)

Public function

TSphere

(
    const TSphere< double >* Spher...,
    int32 Count
)

Public function

TSphere

(
    const TVector< float >* Points,
    int32 Count
)

Forward declarations for complex constructors.

Public function

TSphere

(
    const TVector< double >* Point...,
    int32 Count
)

Public function

TSphere

(
    const TSphere< float >* Sphere...,
    int32 Count
)

Public function

TSphere

(
    const TSphere< double >* Spher...,
    int32 Count
)

Public function

TSphere

(
    int32
)

Creates and initializes a new sphere.

Public function

TSphere

(
    EForceInit
)

Constructor.

Public function

TSphere

(
    const TSphere< FArg >& From
)

Conversion from other variant type.

Public function

TSphere

(
    TVector< T > InV,
    T InW
)

Creates and initializes a new sphere with the specified parameters.

Public function

TSphere

(
    const TVector< T >* Points,
    int32 Count
)

Constructor.

Public function

TSphere

(
    const TSphere< T >* Spheres,
    int32 Count
)

Constructor.

Public function

TSphere

(
    const TVector< float >* Points,
    int32 Count
)

Public function

TSphere

(
    const TVector< double >* Point...,
    int32 Count
)

Functions

Name Description

Public function Const

bool

 

Equals

(
    const TSphere< T >& Sphere,
    T Tolerance
)

Check whether two spheres are the same within specified tolerance.

Public function Const

T

 

GetVolume()

Get volume of the current sphere

Public function Const

bool

 

Intersects

(
    const TSphere< T >& Other,
    T Tolerance
)

Test whether this sphere intersects another.

Public function Const

bool

 

IsInside

(
    const TSphere< T >& Other,
    T Tolerance
)

Check whether sphere is inside of another.

Public function Const

bool

 

IsInside

(
    const FVector& In,
    T Tolerance
)

Checks whether the given location is inside this sphere.

Public function Const

TSphere< T >

 

TransformBy

(
    const TMatrix< T >& M
)

Get result of Transforming sphere by Matrix.

Public function Const

TSphere< T >

 

TransformBy

(
    const FTransform& M
)

Get result of Transforming sphere with Transform.

Operators

Name Description

Public function Const

TSphere

 

operator+

(
    const TSphere< T >& Other
)

Gets the result of addition to this bounding volume.

Public function

TSphere< T >...

 

operator+=

(
    const TSphere< T >& Other
)

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

Typedefs

Name

Description

FReal