UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
UE::Geometry::FAxisAlignedBox2i Struct Reference

#include <IntBoxTypes.h>

Public Member Functions

 FAxisAlignedBox2i ()
 
 FAxisAlignedBox2i (const FVector2i &Min, const FVector2i &Max)
 
 FAxisAlignedBox2i (int32 SquareSize)
 
 FAxisAlignedBox2i (int32 Width, int32 Height)
 
bool operator== (const FAxisAlignedBox2i &Other) const
 
bool operator!= (const FAxisAlignedBox2i &Other) const
 
FVector2i GetCorner (int Index) const
 
bool IsEmpty () const
 
void Expand (int32 Radius)
 
int32 Area () const
 
FVector2i Diagonal () const
 
bool Contains (const FVector2i &V) const
 
void Contain (const FVector2i &V)
 

Static Public Member Functions

static FAxisAlignedBox2i Empty ()
 

Public Attributes

FVector2i Min
 
FVector2i Max
 

Constructor & Destructor Documentation

◆ FAxisAlignedBox2i() [1/4]

UE::Geometry::FAxisAlignedBox2i::FAxisAlignedBox2i ( )
inline

◆ FAxisAlignedBox2i() [2/4]

UE::Geometry::FAxisAlignedBox2i::FAxisAlignedBox2i ( const FVector2i Min,
const FVector2i Max 
)
inline

◆ FAxisAlignedBox2i() [3/4]

UE::Geometry::FAxisAlignedBox2i::FAxisAlignedBox2i ( int32  SquareSize)
inline

◆ FAxisAlignedBox2i() [4/4]

UE::Geometry::FAxisAlignedBox2i::FAxisAlignedBox2i ( int32  Width,
int32  Height 
)
inline

Member Function Documentation

◆ Area()

int32 UE::Geometry::FAxisAlignedBox2i::Area ( ) const
inline

◆ Contain()

void UE::Geometry::FAxisAlignedBox2i::Contain ( const FVector2i V)
inline

◆ Contains()

bool UE::Geometry::FAxisAlignedBox2i::Contains ( const FVector2i V) const
inline

◆ Diagonal()

FVector2i UE::Geometry::FAxisAlignedBox2i::Diagonal ( ) const
inline

◆ Empty()

static FAxisAlignedBox2i UE::Geometry::FAxisAlignedBox2i::Empty ( )
inlinestatic

◆ Expand()

void UE::Geometry::FAxisAlignedBox2i::Expand ( int32  Radius)
inline

◆ GetCorner()

FVector2i UE::Geometry::FAxisAlignedBox2i::GetCorner ( int  Index) const
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)

Parameters
Indexwhich corner to return, must be in range [0,3]
Returns
Corner of the bounding rectangle

◆ IsEmpty()

bool UE::Geometry::FAxisAlignedBox2i::IsEmpty ( ) const
inline

◆ operator!=()

bool UE::Geometry::FAxisAlignedBox2i::operator!= ( const FAxisAlignedBox2i Other) const
inline

◆ operator==()

bool UE::Geometry::FAxisAlignedBox2i::operator== ( const FAxisAlignedBox2i Other) const
inline

Member Data Documentation

◆ Max

FVector2i UE::Geometry::FAxisAlignedBox2i::Max

◆ Min

FVector2i UE::Geometry::FAxisAlignedBox2i::Min

The documentation for this struct was generated from the following file: