Structure for a combined axis aligned bounding box and bounding sphere with the same origin. 更多...
#include <BoxSphereBounds.h>
Public 成员函数 | |
| FORCEINLINE float | ComputeSquaredDistanceFromBoxToPoint (const FVector &Point) const |
| Calculates the squared distance from a point to a bounding box 更多... | |
| FORCEINLINE FBoxSphereBounds | ExpandBy (float ExpandAmount) const |
| Increase the size of the box and sphere by a given size. 更多... | |
| FBoxSphereBounds () | |
| Default constructor. | |
| FBoxSphereBounds (const FBox &Box) | |
| Creates and initializes a new instance the given Box. 更多... | |
| FBoxSphereBounds (const FBox &Box, const FSphere &Sphere) | |
| Creates and initializes a new instance from the given Box and Sphere. 更多... | |
| FBoxSphereBounds (const FSphere &Sphere) | |
| Creates and initializes a new instance for the given sphere. | |
| FBoxSphereBounds (const FVector &InOrigin, const FVector &InBoxExtent, float InSphereRadius) | |
| Creates and initializes a new instance from the specified parameters. 更多... | |
| FBoxSphereBounds (const FVector *Points, uint32 NumPoints) | |
| Creates and initializes a new instance from the given set of points. 更多... | |
| FORCEINLINE | FBoxSphereBounds (EForceInit) |
| Creates and initializes a new instance. 更多... | |
| FORCEINLINE FBox | GetBox () const |
| Gets the bounding box. 更多... | |
| FVector | GetBoxExtrema (uint32 Extrema) const |
| Gets the extrema for the bounding box. 更多... | |
| FORCEINLINE FSphere | GetSphere () const |
| Gets the bounding sphere. 更多... | |
| FORCEINLINE bool | operator!= (const FBoxSphereBounds &Other) const |
| Compare bounding volume this and Other. 更多... | |
| FORCEINLINE FBoxSphereBounds | operator+ (const FBoxSphereBounds &Other) const |
| Constructs a bounding volume containing both this and B. 更多... | |
| FORCEINLINE bool | operator== (const FBoxSphereBounds &Other) const |
| Compare bounding volume this and Other. 更多... | |
| FString | ToString () const |
| Get a textual representation of this bounding box. 更多... | |
| CORE_API FBoxSphereBounds | TransformBy (const FMatrix &M) const |
| Gets a bounding volume transformed by a matrix. 更多... | |
| CORE_API FBoxSphereBounds | TransformBy (const FTransform &M) const |
| Gets a bounding volume transformed by a FTransform object. 更多... | |
静态 Public 成员函数 | |
| static FORCEINLINE bool | BoxesIntersect (const FBoxSphereBounds &A, const FBoxSphereBounds &B) |
| Test whether the boxes from two BoxSphereBounds intersect/overlap. 更多... | |
| static FORCEINLINE bool | SpheresIntersect (const FBoxSphereBounds &A, const FBoxSphereBounds &B, float Tolerance=KINDA_SMALL_NUMBER) |
| Test whether the spheres from two BoxSphereBounds intersect/overlap. 更多... | |
Public 属性 | |
| FVector | BoxExtent |
| Holds the extent of the bounding box. | |
| FVector | Origin |
| Holds the origin of the bounding box and sphere. | |
| float | SphereRadius |
| Holds the radius of the bounding sphere. | |
友元 | |
| FArchive & | operator<< (FArchive &Ar, FBoxSphereBounds &Bounds) |
| Serializes the given bounding volume from or into the specified archive. 更多... | |
| FBoxSphereBounds | Union (const FBoxSphereBounds &A, const FBoxSphereBounds &B) |
| Constructs a bounding volume containing both A and B. 更多... | |
Structure for a combined axis aligned bounding box and bounding sphere with the same origin.
(28 bytes).
|
inlineexplicit |
Creates and initializes a new instance.
| EForceInit | Force Init Enum. |
|
inline |
Creates and initializes a new instance from the specified parameters.
| InOrigin | origin of the bounding box and sphere. |
| InBoxExtent | half size of box. |
| InSphereRadius | radius of the sphere. |
Creates and initializes a new instance from the given Box and Sphere.
| Box | The bounding box. |
| Sphere | The bounding sphere. |
|
inline |
Creates and initializes a new instance the given Box.
The sphere radius is taken from the extent of the box.
| Box | The bounding box. |
| FORCEINLINE FBoxSphereBounds::FBoxSphereBounds | ( | const FVector * | Points, |
| uint32 | NumPoints | ||
| ) |
Creates and initializes a new instance from the given set of points.
The sphere radius is taken from the extent of the box.
| Points | The points to be considered for the bounding box. |
| NumPoints | Number of points in the Points array. |
|
inlinestatic |
Test whether the boxes from two BoxSphereBounds intersect/overlap.
| A | First BoxSphereBounds to test. |
| B | Second BoxSphereBounds to test. |
|
inline |
Calculates the squared distance from a point to a bounding box
| Point | The point. |
|
inline |
Increase the size of the box and sphere by a given size.
| ExpandAmount | The size to increase by. |
|
inline |
Gets the bounding box.
|
inline |
Gets the extrema for the bounding box.
| Extrema | 1 for positive extrema from the origin, else negative |
|
inline |
Gets the bounding sphere.
| FORCEINLINE bool FBoxSphereBounds::operator!= | ( | const FBoxSphereBounds & | Other | ) | const |
Compare bounding volume this and Other.
| Other | The other bounding volume. |
| FORCEINLINE FBoxSphereBounds FBoxSphereBounds::operator+ | ( | const FBoxSphereBounds & | Other | ) | const |
Constructs a bounding volume containing both this and B.
| Other | The other bounding volume. |
| FORCEINLINE bool FBoxSphereBounds::operator== | ( | const FBoxSphereBounds & | Other | ) | const |
Compare bounding volume this and Other.
| Other | The other bounding volume. |
|
inlinestatic |
Test whether the spheres from two BoxSphereBounds intersect/overlap.
| A | First BoxSphereBounds to test. |
| B | Second BoxSphereBounds to test. |
| Tolerance | Error tolerance added to test distance. |
| FORCEINLINE FString FBoxSphereBounds::ToString | ( | ) | const |
Get a textual representation of this bounding box.
| CORE_API FBoxSphereBounds FBoxSphereBounds::TransformBy | ( | const FMatrix & | M | ) | const |
Gets a bounding volume transformed by a matrix.
| M | The matrix. |
| CORE_API FBoxSphereBounds FBoxSphereBounds::TransformBy | ( | const FTransform & | M | ) | const |
Gets a bounding volume transformed by a FTransform object.
| M | The FTransform object. |
|
friend |
Serializes the given bounding volume from or into the specified archive.
| Ar | The archive to serialize from or into. |
| Bounds | The bounding volume to serialize. |
|
friend |
Constructs a bounding volume containing both A and B.
This is a legacy version of the function used to compute primitive bounds, to avoid the need to rebuild lighting after the change.