![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <BoxTypes.h>
Public Member Functions | |
| TAxisAlignedBox2 () | |
| TAxisAlignedBox2 (const TVector2< RealType > &Min, const TVector2< RealType > &Max) | |
| template<typename OtherRealType > | |
| TAxisAlignedBox2 (const TAxisAlignedBox2< OtherRealType > &OtherBox) | |
| TAxisAlignedBox2 (RealType SquareSize) | |
| TAxisAlignedBox2 (RealType Width, RealType Height) | |
| TAxisAlignedBox2 (const TArray< TVector2< RealType > > &Pts) | |
| TAxisAlignedBox2 (TArrayView< const TVector2< RealType > > Pts) | |
| TAxisAlignedBox2 (const TVector2< RealType > &Center, RealType HalfWidth) | |
| template<typename OutRealType > | |
| operator TBox2< OutRealType > () const | |
| template<typename InRealType > | |
| TAxisAlignedBox2 (const TBox2< InRealType > &Box) | |
| TVector2< RealType > | Center () const |
| TVector2< RealType > | Extents () const |
| TVector2< RealType > | GetCorner (int Index) const |
| void | Contain (const TVector2< RealType > &V) |
| void | Contain (const TAxisAlignedBox2< RealType > &Other) |
| void | Contain (const TArray< TVector2< RealType > > &Pts) |
| void | Contain (TArrayView< const TVector2< RealType > > Pts) |
| bool | Contains (const TVector2< RealType > &V) const |
| bool | Contains (const TAxisAlignedBox2< RealType > &Box) const |
| TVector< RealType > | Clamp (const TVector2< RealType > &V) |
| bool | Intersects (const TAxisAlignedBox2< RealType > &Box) const |
| TAxisAlignedBox2< RealType > | Intersect (const TAxisAlignedBox2< RealType > &Box) const |
| RealType | DistanceSquared (const TVector2< RealType > &V) const |
| RealType | Width () const |
| RealType | Height () const |
| RealType | Area () const |
| RealType | Perimeter () const |
| RealType | DiagonalLength () const |
| RealType | MaxDim () const |
| RealType | MinDim () const |
| bool | IsEmpty () const |
| void | Expand (RealType Radius) |
| void | Expand (const TVector2< RealType > &ExpandByVec) |
Static Public Member Functions | |
| static TAxisAlignedBox2< RealType > | Empty () |
Public Attributes | |
| TVector2< RealType > | Min |
| TVector2< RealType > | Max |
|
inline |
|
inline |
|
inlineexplicit |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinestatic |
|
inline |
|
inline |
|
inline |
|
inline |
Corners are ordered to follow the perimeter of the bounding rectangle, starting from the (Min.X, Min.Y) corner and ending at (Min.X, Max.Y)
| Index | which corner to return, must be in range [0,3] |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineexplicit |
|
inline |
|
inline |
| TVector2<RealType> UE::Geometry::TAxisAlignedBox2< RealType >::Max |
| TVector2<RealType> UE::Geometry::TAxisAlignedBox2< RealType >::Min |