Navigation
Unreal Engine C++ API Reference > Runtime > Core > Math
References
Module | Core |
Header | /Engine/Source/Runtime/Core/Public/Math/MathFwd.h |
Include | #include "Math/MathFwd.h" |
Source | /Engine/Source/Runtime/Core/Public/Math/Sphere.h |
Syntax
template<typename T>
struct TSphere
Variables
Type | Name | Description | |
---|---|---|---|
![]() |
TVector< T > | Center | The sphere's center point. |
![]() |
T | W | The sphere's radius. |
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
TSphere () |
Default constructor (no initialization). | |
![]() |
|||
![]() |
|||
![]() |
Forward declarations for complex constructors. | ||
![]() |
|||
![]() |
|||
![]() |
|||
![]() |
Creates and initializes a new sphere. | ||
![]() |
TSphere
(
EForceInit |
Constructor. | |
![]() |
Conversion from other variant type. | ||
![]() |
Creates and initializes a new sphere with the specified parameters. | ||
![]() |
Constructor. | ||
![]() |
Constructor. | ||
![]() |
|||
![]() |
Functions
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
bool | Check whether two spheres are the same within specified tolerance. | |
![]() ![]() |
T | GetVolume () |
Get volume of the current sphere |
![]() ![]() |
bool | Intersects
(
const TSphere< T >& Other, |
Test whether this sphere intersects another. |
![]() ![]() |
bool | Checks whether the given location is inside this sphere. | |
![]() ![]() |
bool | Check whether sphere is inside of another. | |
![]() |
bool | Note: TSphere is usually written via binary serialization. This function exists for SerializeFromMismatchedTag conversion usage. | |
![]() |
bool | SerializeFromMismatchedTag
(
FName StructTag, |
|
![]() ![]() |
FString | ToString () |
Get a textual representation of the sphere. |
![]() ![]() |
TSphere< T > | TransformBy
(
const TMatrix< T >& M |
Get result of Transforming sphere by Matrix. |
![]() ![]() |
TSphere< T > | TransformBy
(
const FTransform& M |
Get result of Transforming sphere with Transform. |
Operators
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
bool | operator!=
(
const TSphere< T >& Other |
Compares two spheres for inequality. |
![]() ![]() |
TSphere< T > | Gets the result of addition to this bounding volume. | |
![]() |
TSphere< T > & | operator+=
(
const TSphere< T >& Other |
Adds to this sphere to include a new bounding volume. |
![]() ![]() |
bool | operator==
(
const TSphere< T >& Other |
Compares two spheres for equality. |
Typedefs
Name | Description |
---|---|
FReal |