UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
UE::Geometry::TSphere3< T > Struct Template Reference

#include <SphereTypes.h>

Public Member Functions

 TSphere3 ()=default
 
 TSphere3 (const TVector< T > &CenterIn, T RadiusIn)
 
Diameter () const
 
Circumference () const
 
Area () const
 
Volume () const
 
bool Contains (const TVector< T > &Point) const
 
bool Contains (const TSphere3< T > &OtherSphere) const
 
DistanceSquared (const TVector< T > &Point) const
 
SignedDistance (const TVector< T > &Point) const
 

Static Public Member Functions

staticArea (T Radius)
 
staticVolume (T Radius)
 

Public Attributes

TVector< T > Center = TVector<T>::Zero()
 
Radius = (T)0
 

Constructor & Destructor Documentation

◆ TSphere3() [1/2]

template<typename T >
UE::Geometry::TSphere3< T >::TSphere3 ( )
default

◆ TSphere3() [2/2]

template<typename T >
UE::Geometry::TSphere3< T >::TSphere3 ( const TVector< T > &  CenterIn,
RadiusIn 
)
inline

Member Function Documentation

◆ Area() [1/2]

template<typename T >
T UE::Geometry::TSphere3< T >::Area ( ) const
inline
Returns
Area of sphere

◆ Area() [2/2]

template<typename T >
static T UE::Geometry::TSphere3< T >::Area ( Radius)
inlinestatic
Returns
Area of sphere with given Radius

◆ Circumference()

template<typename T >
T UE::Geometry::TSphere3< T >::Circumference ( ) const
inline
Returns
Circumference of sphere

◆ Contains() [1/2]

template<typename T >
bool UE::Geometry::TSphere3< T >::Contains ( const TSphere3< T > &  OtherSphere) const
inline
Returns
true if Sphere contains given OtherSphere

◆ Contains() [2/2]

template<typename T >
bool UE::Geometry::TSphere3< T >::Contains ( const TVector< T > &  Point) const
inline
Returns
true if Sphere contains given Point

◆ Diameter()

template<typename T >
T UE::Geometry::TSphere3< T >::Diameter ( ) const
inline
Returns
Diameter of sphere

◆ DistanceSquared()

template<typename T >
T UE::Geometry::TSphere3< T >::DistanceSquared ( const TVector< T > &  Point) const
inline
Returns
minimum squared distance from Point to Sphere surface for points outside sphere, 0 for points inside

◆ SignedDistance()

template<typename T >
T UE::Geometry::TSphere3< T >::SignedDistance ( const TVector< T > &  Point) const
inline
Returns
signed distance from Point to Sphere surface. Points inside sphere return negative distance.

◆ Volume() [1/2]

template<typename T >
T UE::Geometry::TSphere3< T >::Volume ( ) const
inline
Returns
Volume of sphere

◆ Volume() [2/2]

template<typename T >
static T UE::Geometry::TSphere3< T >::Volume ( Radius)
inlinestatic
Returns
Volume of sphere with given Radius

Member Data Documentation

◆ Center

template<typename T >
TVector<T> UE::Geometry::TSphere3< T >::Center = TVector<T>::Zero()

Center of the sphere

◆ Radius

template<typename T >
T UE::Geometry::TSphere3< T >::Radius = (T)0

Radius of the sphere


The documentation for this struct was generated from the following files: