engine
 
载入中...
搜索中...
未找到
Public 成员函数 | Public 属性 | 友元 | 所有成员列表
FSphere类 参考

Implements a basic sphere. 更多...

#include <Sphere.h>

Public 成员函数

bool Equals (const FSphere &Sphere, float Tolerance=KINDA_SMALL_NUMBER) const
 Check whether two spheres are the same within specified tolerance. 更多...
 
 FSphere ()
 Default constructor (no initialization).
 
CORE_API FSphere (const FVector *Pts, int32 Count)
 Constructor. 更多...
 
FORCEINLINE FSphere (EForceInit)
 Constructor. 更多...
 
 FSphere (FVector InV, float InW)
 Creates and initializes a new sphere with the specified parameters. 更多...
 
 FSphere (int32)
 Creates and initializes a new sphere. 更多...
 
CORE_API float GetVolume () const
 Get volume of the current sphere 更多...
 
FORCEINLINE bool Intersects (const FSphere &Other, float Tolerance=KINDA_SMALL_NUMBER) const
 Test whether this sphere intersects another. 更多...
 
bool IsInside (const FSphere &Other, float Tolerance=KINDA_SMALL_NUMBER) const
 Check whether sphere is inside of another. 更多...
 
bool IsInside (const FVector &In, float Tolerance=KINDA_SMALL_NUMBER) const
 Checks whether the given location is inside this sphere. 更多...
 
FSphere operator+ (const FSphere &Other) const
 Gets the result of addition to this bounding volume. 更多...
 
CORE_API FSphere & operator+= (const FSphere &Other)
 Adds to this bounding box to include a new bounding volume. 更多...
 
CORE_API FSphere TransformBy (const FMatrix &M) const
 Get result of Transforming sphere by Matrix. 更多...
 
CORE_API FSphere TransformBy (const FTransform &M) const
 Get result of Transforming sphere with Transform. 更多...
 

Public 属性

FVector Center
 The sphere's center point.
 
float W
 The sphere's radius.
 

友元

FArchive & operator<< (FArchive &Ar, FSphere &Sphere)
 Serializes the given sphere from or into the specified archive. 更多...
 

详细描述

Implements a basic sphere.

构造及析构函数说明

◆ FSphere() [1/4]

FSphere::FSphere ( int32  )
inline

Creates and initializes a new sphere.

参数
int32Passing int32 sets up zeroed sphere.

◆ FSphere() [2/4]

FSphere::FSphere ( FVector  InV,
float  InW 
)
inline

Creates and initializes a new sphere with the specified parameters.

参数
InVCenter of sphere.
InWRadius of sphere.

◆ FSphere() [3/4]

FORCEINLINE FSphere::FSphere ( EForceInit  )
inlineexplicit

Constructor.

参数
EForceInitForce Init Enum.

◆ FSphere() [4/4]

CORE_API FSphere::FSphere ( const FVector *  Pts,
int32  Count 
)

Constructor.

参数
PtsPointer to list of points this sphere must contain.
CountHow many points are in the list.

成员函数说明

◆ Equals()

bool FSphere::Equals ( const FSphere &  Sphere,
float  Tolerance = KINDA_SMALL_NUMBER 
) const
inline

Check whether two spheres are the same within specified tolerance.

参数
SphereThe other sphere.
ToleranceError Tolerance.
返回
true if spheres are equal within specified tolerance, otherwise false.

◆ GetVolume()

CORE_API float FSphere::GetVolume ( ) const

Get volume of the current sphere

返回
Volume (in Unreal units).

◆ Intersects()

FORCEINLINE bool FSphere::Intersects ( const FSphere &  Other,
float  Tolerance = KINDA_SMALL_NUMBER 
) const
inline

Test whether this sphere intersects another.

参数
OtherThe other sphere.
ToleranceError tolerance.
返回
true if spheres intersect, false otherwise.

◆ IsInside() [1/2]

bool FSphere::IsInside ( const FSphere &  Other,
float  Tolerance = KINDA_SMALL_NUMBER 
) const
inline

Check whether sphere is inside of another.

参数
OtherThe other sphere.
ToleranceError Tolerance.
返回
true if sphere is inside another, otherwise false.

◆ IsInside() [2/2]

bool FSphere::IsInside ( const FVector &  In,
float  Tolerance = KINDA_SMALL_NUMBER 
) const
inline

Checks whether the given location is inside this sphere.

参数
InThe location to test for inside the bounding volume.
返回
true if location is inside this volume.

◆ operator+()

FSphere FSphere::operator+ ( const FSphere &  Other) const
inline

Gets the result of addition to this bounding volume.

参数
OtherThe other volume to add to this.
返回
A new bounding volume.

◆ operator+=()

CORE_API FSphere & FSphere::operator+= ( const FSphere &  Other)

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

参数
Otherthe bounding volume to increase the bounding volume to.
返回
Reference to this bounding volume after resizing to include the other bounding volume.

◆ TransformBy() [1/2]

CORE_API FSphere FSphere::TransformBy ( const FMatrix &  M) const

Get result of Transforming sphere by Matrix.

参数
MMatrix to transform by.
返回
Result of transformation.

◆ TransformBy() [2/2]

CORE_API FSphere FSphere::TransformBy ( const FTransform &  M) const

Get result of Transforming sphere with Transform.

参数
MTransform information.
返回
Result of transformation.

友元及相关函数文档

◆ operator<<

FArchive & operator<< ( FArchive &  Ar,
FSphere &  Sphere 
)
friend

Serializes the given sphere from or into the specified archive.

参数
ArThe archive to serialize from or into.
SphereThe sphere to serialize.
返回
The archive.

该类的文档由以下文件生成: