![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <IndexTypes.h>
Public Member Functions | |
| constexpr | FIndex2i ()=default |
| constexpr | FIndex2i (int ValA, int ValB) |
| int & | operator[] (int Idx) |
| const int & | operator[] (int Idx) const |
| bool | operator== (const FIndex2i &Other) const |
| bool | operator!= (const FIndex2i &Other) const |
| int | IndexOf (int Value) const |
| bool | Contains (int Value) const |
| int | OtherElement (int Value) const |
| void | Swap () |
| void | Sort () |
| void | Serialize (FArchive &Ar) |
Static Public Member Functions | |
| static constexpr FIndex2i | Zero () |
| static constexpr FIndex2i | Max () |
| static constexpr FIndex2i | Invalid () |
Public Attributes | ||
| union { | ||
| struct { | ||
| int A | ||
| int B | ||
| } | ||
| int AB [2] = { IndexConstants::InvalidID, IndexConstants::InvalidID } | ||
| }; | ||
Friends | |
| FArchive & | operator<< (FArchive &Ar, FIndex2i &I) |
2-index tuple. Ported from g3Sharp library, with the intention of maintaining compatibility with existing g3Sharp code. Has an API similar to WildMagic, GTEngine, Eigen, etc.
|
constexprdefault |
|
inlineconstexpr |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Serialization operator for FIndex2i.
| Ar | Archive to serialize with. |
| I | Index to serialize. |
| union { ... } UE::Geometry::FIndex2i |
| int UE::Geometry::FIndex2i::A |
| int UE::Geometry::FIndex2i::AB[2] = { IndexConstants::InvalidID, IndexConstants::InvalidID } |
| int UE::Geometry::FIndex2i::B |