Implements an axis-aligned box. 更多...
#include <Box.h>
被 TBVTree< InElementType, InAllocator >::FElementBox 继承.
Public 成员函数 | |
| FORCEINLINE float | ComputeSquaredDistanceToPoint (const FVector &Point) const |
| Calculates the distance of a point to this box. 更多... | |
| FBox | ExpandBy (const FVector &Neg, const FVector &Pos) const |
| Increases the box size. 更多... | |
| FORCEINLINE FBox | ExpandBy (const FVector &V) const |
| Increases the box size. 更多... | |
| FORCEINLINE FBox | ExpandBy (float W) const |
| Increases the box size. 更多... | |
| FBox () | |
| Default constructor (no initialization). | |
| FBox (const FVector &InMin, const FVector &InMax) | |
| Creates and initializes a new box from the specified extents. 更多... | |
| CORE_API | FBox (const FVector *Points, int32 Count) |
| Creates and initializes a new box from the given set of points. 更多... | |
| CORE_API | FBox (const TArray< FVector > &Points) |
| Creates and initializes a new box from an array of points. 更多... | |
| FBox (EForceInit) | |
| Creates and initializes a new box with zero extent and marks it as invalid. 更多... | |
| FORCEINLINE FVector | GetCenter () const |
| Gets the center point of this box. 更多... | |
| FORCEINLINE void | GetCenterAndExtents (FVector ¢er, FVector &Extents) const |
| Gets the center and extents of this box. 更多... | |
| FORCEINLINE FVector | GetClosestPointTo (const FVector &Point) const |
| Calculates the closest point on or inside the box to a given point in space. 更多... | |
| FORCEINLINE FVector | GetExtent () const |
| Gets the extents of this box. 更多... | |
| FORCEINLINE FVector | GetSize () const |
| Gets the size of this box. 更多... | |
| FORCEINLINE float | GetVolume () const |
| Gets the volume of this box. 更多... | |
| FORCEINLINE void | Init () |
| Set the initial values of the bounding box to Zero. | |
| FORCEINLINE bool | Intersect (const FBox &other) const |
| Checks whether the given bounding box intersects this bounding box. 更多... | |
| FORCEINLINE bool | IntersectXY (const FBox &Other) const |
| Checks whether the given bounding box intersects this bounding box in the XY plane. 更多... | |
| CORE_API FBox | InverseTransformBy (const FTransform &M) const |
| Gets a bounding volume transformed by an inverted FTransform object. 更多... | |
| FORCEINLINE bool | IsInside (const FBox &Other) const |
| Checks whether a given box is fully encapsulated by this box. 更多... | |
| FORCEINLINE bool | IsInside (const FVector &In) const |
| Checks whether the given location is inside this box. 更多... | |
| FORCEINLINE bool | IsInsideOrOn (const FVector &In) const |
| Checks whether the given location is inside or on this box. 更多... | |
| FORCEINLINE bool | IsInsideXY (const FBox &Other) const |
| Checks whether the given box is fully encapsulated by this box in the XY plane. 更多... | |
| FORCEINLINE bool | IsInsideXY (const FVector &In) const |
| Checks whether the given location is inside this box in the XY plane. 更多... | |
| FORCEINLINE FBox | MoveTo (const FVector &Destination) const |
| Moves the center of bounding box to new destination. 更多... | |
| FORCEINLINE FBox | operator+ (const FBox &Other) const |
| Gets the result of addition to this bounding volume. 更多... | |
| FORCEINLINE FBox | operator+ (const FVector &Other) const |
| Gets the result of addition to this bounding volume. 更多... | |
| FORCEINLINE FBox & | operator+= (const FBox &Other) |
| Adds to this bounding box to include a new bounding volume. 更多... | |
| FORCEINLINE FBox & | operator+= (const FVector &Other) |
| Adds to this bounding box to include a given point. 更多... | |
| FORCEINLINE bool | operator== (const FBox &Other) const |
| Compares two boxes for equality. 更多... | |
| FORCEINLINE FVector & | operator[] (int32 Index) |
| Gets reference to the min or max of this bounding volume. 更多... | |
| CORE_API FBox | Overlap (const FBox &Other) const |
| Returns the overlap FBox of two box 更多... | |
| FORCEINLINE FBox | ShiftBy (const FVector &Offset) const |
| Shifts the bounding box position. 更多... | |
| FString | ToString () const |
| Get a textual representation of this box. 更多... | |
| CORE_API FBox | TransformBy (const FMatrix &M) const |
| Gets a bounding volume transformed by a matrix. 更多... | |
| CORE_API FBox | TransformBy (const FTransform &M) const |
| Gets a bounding volume transformed by a FTransform object. 更多... | |
| CORE_API FBox | TransformProjectBy (const FMatrix &ProjM) const |
| Transforms and projects a world bounding box to screen space 更多... | |
静态 Public 成员函数 | |
| static FBox | BuildAABB (const FVector &Origin, const FVector &Extent) |
| Utility function to build an AABB from Origin and Extent 更多... | |
Public 属性 | |
| uint8 | IsValid |
| Holds a flag indicating whether this box is valid. | |
| FVector | Max |
| Holds the box's maximum point. | |
| FVector | Min |
| Holds the box's minimum point. | |
友元 | |
| FArchive & | operator<< (FArchive &Ar, FBox &Box) |
| Serializes the bounding box. 更多... | |
| void | operator<< (FStructuredArchive::FSlot Slot, FBox &Box) |
| Serializes the bounding box. 更多... | |
Implements an axis-aligned box.
Boxes describe an axis-aligned extent in three dimensions. They are used for many different things in the Engine and in games, such as bounding volumes, collision detection and visibility calculation.
|
inlineexplicit |
Creates and initializes a new box with zero extent and marks it as invalid.
| EForceInit | Force Init Enum. |
Creates and initializes a new box from the specified extents.
| InMin | The box's minimum point. |
| InMax | The box's maximum point. |
| CORE_API FBox::FBox | ( | const FVector * | Points, |
| int32 | Count | ||
| ) |
Creates and initializes a new box from the given set of points.
| Points | Array of Points to create for the bounding volume. |
| Count | The number of points. |
Creates and initializes a new box from an array of points.
| Points | Array of Points to create for the bounding volume. |
Utility function to build an AABB from Origin and Extent
| Origin | The location of the bounding box. |
| Extent | Half size of the bounding box. |
|
inline |
Calculates the distance of a point to this box.
| Point | The point. |
Increases the box size.
| Neg | The size to increase the volume by in the negative direction (positive values move the bounds outwards) |
| Pos | The size to increase the volume by in the positive direction (positive values move the bounds outwards) |
Increases the box size.
| V | The size to increase the volume by. |
|
inline |
Increases the box size.
| W | The size to increase the volume by. |
|
inline |
Gets the center point of this box.
Calculates the closest point on or inside the box to a given point in space.
| Point | The point in space. |
|
inline |
Gets the extents of this box.
|
inline |
|
inline |
| FORCEINLINE bool FBox::Intersect | ( | const FBox & | other | ) | const |
Checks whether the given bounding box intersects this bounding box.
| Other | The bounding box to intersect with. |
| FORCEINLINE bool FBox::IntersectXY | ( | const FBox & | Other | ) | const |
Checks whether the given bounding box intersects this bounding box in the XY plane.
| Other | The bounding box to test intersection. |
| CORE_API FBox FBox::InverseTransformBy | ( | const FTransform & | M | ) | const |
Gets a bounding volume transformed by an inverted FTransform object.
| M | The transformation object to perform the inversely transform this box with. |
|
inline |
Checks whether a given box is fully encapsulated by this box.
| Other | The box to test for encapsulation within the bounding volume. |
|
inline |
Checks whether the given location is inside this box.
| In | The location to test for inside the bounding volume. |
|
inline |
Checks whether the given location is inside or on this box.
| In | The location to test for inside the bounding volume. |
|
inline |
Checks whether the given box is fully encapsulated by this box in the XY plane.
| Other | The box to test for encapsulation within the bounding box. |
|
inline |
Checks whether the given location is inside this box in the XY plane.
| In | The location to test for inside the bounding box. |
Moves the center of bounding box to new destination.
| The | destination point to move center of box to. |
Gets the result of addition to this bounding volume.
| Other | The other volume to add to this. |
Gets the result of addition to this bounding volume.
| Other | The other point 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. |
Adds to this bounding box to include a given point.
| Other | the point to increase the bounding volume to. |
|
inline |
Compares two boxes for equality.
|
inline |
Gets reference to the min or max of this bounding volume.
| Index | the index into points of the bounding volume. |
Returns the overlap FBox of two box
| Other | The bounding box to test overlap |
Shifts the bounding box position.
| Offset | The vector to shift the box by. |
| FORCEINLINE FString FBox::ToString | ( | ) | const |
Get a textual representation of this box.
Gets a bounding volume transformed by a matrix.
| M | The matrix to transform by. |
| CORE_API FBox FBox::TransformBy | ( | const FTransform & | M | ) | const |
Gets a bounding volume transformed by a FTransform object.
| M | The transformation object. |
Transforms and projects a world bounding box to screen space
| ProjM | The projection matrix. |
Serializes the bounding box.
| Ar | The archive to serialize into. |
| Box | The box to serialize. |
|
friend |
Serializes the bounding box.
| Slot | The structured archive slot to serialize into. |
| Box | The box to serialize. |