#include <BoxSphereBounds.h>
|
| | TBoxSphereBounds ()=default |
| |
| | TBoxSphereBounds (EForceInit) |
| |
| | TBoxSphereBounds (const TVector< T > &InOrigin, const TVector< TExtent > &InBoxExtent, TExtent InSphereRadius) |
| |
| | TBoxSphereBounds (const TBox< T > &Box, const TSphere< T > &Sphere) |
| |
| | TBoxSphereBounds (const TBox< T > &Box) |
| |
| | TBoxSphereBounds (const TSphere< T > &Sphere) |
| |
| | TBoxSphereBounds (const TVector< T > *Points, uint32 NumPoints) |
| |
| template<typename TFrom , typename TExtentFrom UE_REQUIRES> |
| | TBoxSphereBounds (const TBoxSphereBounds< TFrom, TExtentFrom > &From) |
| |
| bool | Serialize (FArchive &Ar) |
| |
| bool | SerializeFromMismatchedTag (FName StructTag, FArchive &Ar) |
| |
| TBoxSphereBounds< T, TExtent > | operator+ (const TBoxSphereBounds< T, TExtent > &Other) const |
| |
| UE_FORCEINLINE_HINT bool | operator== (const TBoxSphereBounds< T, TExtent > &Other) const |
| |
| UE_FORCEINLINE_HINT bool | operator!= (const TBoxSphereBounds< T, TExtent > &Other) const |
| |
| T | ComputeSquaredDistanceFromBoxToPoint (const TVector< T > &Point) const |
| |
| UE_FORCEINLINE_HINT TBox< T > | GetBox () const |
| |
| TVector< T > | GetBoxExtrema (uint32 Extrema) const |
| |
| UE_FORCEINLINE_HINT TSphere< T > | GetSphere () const |
| |
| UE_FORCEINLINE_HINT TBoxSphereBounds< T, TExtent > | ExpandBy (TExtent ExpandAmount) const |
| |
| TBoxSphereBounds< T, TExtent > | TransformBy (const TMatrix< T > &M) const |
| |
| TBoxSphereBounds< T, TExtent > | TransformBy (const TTransform< T > &M) const |
| |
| FString | ToString () const |
| |
| UE_FORCEINLINE_HINT void | DiagnosticCheckNaN () const |
| |
| bool | ContainsNaN () const |
| |
◆ FReal
◆ TBoxSphereBounds() [1/8]
◆ TBoxSphereBounds() [2/8]
Creates and initializes a new instance.
- Parameters
-
| EForceInit | Force Init Enum. |
◆ TBoxSphereBounds() [3/8]
Creates and initializes a new instance from the specified parameters.
- Parameters
-
| InOrigin | origin of the bounding box and sphere. |
| InBoxExtent | half size of box. |
| InSphereRadius | radius of the sphere. |
◆ TBoxSphereBounds() [4/8]
Creates and initializes a new instance from the given Box and Sphere.
- Parameters
-
| Box | The bounding box. |
| Sphere | The bounding sphere. |
◆ TBoxSphereBounds() [5/8]
Creates and initializes a new instance the given Box.
The sphere radius is taken from the extent of the box.
- Parameters
-
◆ TBoxSphereBounds() [6/8]
Creates and initializes a new instance for the given sphere.
◆ TBoxSphereBounds() [7/8]
Creates and initializes a new instance from the given set of points.
The sphere radius is taken from the extent of the box.
- Parameters
-
| Points | The points to be considered for the bounding box. |
| NumPoints | Number of points in the Points array. |
◆ TBoxSphereBounds() [8/8]
◆ BoxesIntersect()
Test whether the boxes from two BoxSphereBounds intersect/overlap.
- Parameters
-
| A | First BoxSphereBounds to test. |
| B | Second BoxSphereBounds to test. |
- Returns
- true if boxes intersect, false otherwise.
◆ ComputeSquaredDistanceFromBoxToPoint()
Calculates the squared distance from a point to a bounding box
- Parameters
-
- Returns
- The distance.
◆ ContainsNaN()
◆ DiagnosticCheckNaN()
◆ ExpandBy()
Increase the size of the box and sphere by a given size.
- Parameters
-
| ExpandAmount | The size to increase by. |
- Returns
- A new box with the expanded size.
◆ GetBox()
Gets the bounding box.
- Returns
- The bounding box.
◆ GetBoxExtrema()
Gets the extrema for the bounding box.
- Parameters
-
| Extrema | 1 for positive extrema from the origin, else negative |
- Returns
- The boxes extrema
◆ GetSphere()
Gets the bounding sphere.
- Returns
- The bounding sphere.
◆ operator!=()
Compare bounding volume this and Other.
- Parameters
-
| Other | The other bounding volume. |
- Returns
- true of they do not match.
◆ operator+()
Constructs a bounding volume containing both this and B.
- Parameters
-
| Other | The other bounding volume. |
- Returns
- The combined bounding volume.
◆ operator==()
Compare bounding volume this and Other.
- Parameters
-
| Other | The other bounding volume. |
- Returns
- true of they match.
◆ Serialize()
◆ SerializeFromMismatchedTag()
◆ SpheresIntersect()
Test whether the spheres from two BoxSphereBounds intersect/overlap.
- Parameters
-
| A | First BoxSphereBounds to test. |
| B | Second BoxSphereBounds to test. |
| Tolerance | Error tolerance added to test distance. |
- Returns
- true if spheres intersect, false otherwise.
◆ ToString()
Get a textual representation of this bounding box.
- Returns
- Text describing the bounding box.
◆ TransformBy() [1/2]
Gets a bounding volume transformed by a matrix.
- Parameters
-
- Returns
- The transformed volume.
◆ TransformBy() [2/2]
Gets a bounding volume transformed by a FTransform object.
- Parameters
-
- Returns
- The transformed volume.
◆ Union
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.
◆ BoxExtent
Holds the extent of the bounding box.
◆ Origin
Holds the origin of the bounding box and sphere.
◆ SphereRadius
Holds the radius of the bounding sphere.
The documentation for this struct was generated from the following file: