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.
|
inline |
Creates and initializes a new sphere.
| int32 | Passing int32 sets up zeroed sphere. |
|
inline |
Creates and initializes a new sphere with the specified parameters.
| InV | Center of sphere. |
| InW | Radius of sphere. |
|
inlineexplicit |
Constructor.
| EForceInit | Force Init Enum. |
| CORE_API FSphere::FSphere | ( | const FVector * | Pts, |
| int32 | Count | ||
| ) |
Constructor.
| Pts | Pointer to list of points this sphere must contain. |
| Count | How many points are in the list. |
|
inline |
Check whether two spheres are the same within specified tolerance.
| Sphere | The other sphere. |
| Tolerance | Error Tolerance. |
| CORE_API float FSphere::GetVolume | ( | ) | const |
Get volume of the current sphere
|
inline |
Test whether this sphere intersects another.
| Other | The other sphere. |
| Tolerance | Error tolerance. |
|
inline |
Check whether sphere is inside of another.
| Other | The other sphere. |
| Tolerance | Error Tolerance. |
|
inline |
Checks whether the given location is inside this sphere.
| In | The location to test for inside the bounding volume. |
Gets the result of addition to this bounding volume.
| Other | The other volume to add to this. |
Adds to this bounding box to include a new bounding volume.
| Other | the bounding volume to increase the bounding volume to. |
Get result of Transforming sphere by Matrix.
| M | Matrix to transform by. |
| CORE_API FSphere FSphere::TransformBy | ( | const FTransform & | M | ) | const |
Get result of Transforming sphere with Transform.
| M | Transform information. |
Serializes the given sphere from or into the specified archive.
| Ar | The archive to serialize from or into. |
| Sphere | The sphere to serialize. |