![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <OrientedBoxTypes.h>
Static Public Member Functions | |
| static TOrientedBox3< RealType > | UnitZeroCentered () |
| static TOrientedBox3< RealType > | UnitPositive () |
| static FIndex3i | GetCornerSide (int Index) |
Public Attributes | |
| TFrame3< RealType > | Frame |
| TVector< RealType > | Extents |
TOrientedBox3 is a non-axis-aligned 3D box defined by a 3D frame and extents along the axes of that frame The frame is at the center of the box.
|
inline |
|
inline |
Create axis-aligned box with given Origin and Extents
|
inline |
Create oriented box with given Frame and Extents
|
inline |
Create oriented box from axis-aligned box
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Find closest point on box
| Point | input point |
|
inline |
|
inline |
|
inline |
Find squared distance to box.
| Point | input point |
|
inline |
Call CornerPointFunc(FVector3) for each of the 8 box corners. Order is the same as GetCorner(X). This is more efficient than calling GetCorner(X) because the Rotation matrix is only computed once.
|
inline |
|
inline |
| Index | corner index in range 0-7 |
|
inlinestatic |
Get whether the corner at Index (see diagram in GetCorner documentation comment) is in the negative or positive direction for each axis
| Index | corner index in range 0-7 |
| bool UE::Geometry::TOrientedBox3< RealType >::Intersects | ( | const TAxisAlignedBox3< RealType > & | OtherBox, |
| RealType | ParallelAxesTolerance = TMathUtil<RealType>::ZeroTolerance |
||
| ) | const |
| OtherBox | An axis-aligned box to test for intersection against this box |
| ParallelAxesTolerance | Tolerance for handling the special case where the box axes are nearly parallel |
| bool UE::Geometry::TOrientedBox3< RealType >::Intersects | ( | const TOrientedBox3< RealType > & | OtherBox, |
| RealType | ParallelAxesTolerance = TMathUtil<RealType>::ZeroTolerance |
||
| ) | const |
| OtherBox | An oriented box to test for intersection against this box |
| ParallelAxesTolerance | Tolerance for handling the special case where the box axes are nearly parallel |
|
inline |
| TOrientedBox3< RealType > UE::Geometry::TOrientedBox3< RealType >::Merge | ( | const TOrientedBox3< RealType > & | Other, |
| bool | bOnlyConsiderExistingAxes = false |
||
| ) | const |
|
inlineexplicit |
| TOrientedBox3< RealType > UE::Geometry::TOrientedBox3< RealType >::ReparameterizedCloserToWorldFrame | ( | ) | const |
Transform the frame of the oriented box so its local axes are closer to the corresponding world axes (Does not change the shape of the box, just re-orders the axes if needed)
|
inline |
Find signed distance to box surface
| Point | input point |
|
inline |
|
inline |
Call CornerPointPredicate(FVector3) for each of the 8 box corners, with early-out if any call returns false
|
inlinestatic |
|
inlinestatic |
|
inline |
| TVector<RealType> UE::Geometry::TOrientedBox3< RealType >::Extents |
Half-dimensions of box measured along the three axes
| TFrame3<RealType> UE::Geometry::TOrientedBox3< RealType >::Frame |
3D position (center) and orientation (axes) of the box