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