Ark Server API (ASA) - Wiki
Loading...
Searching...
No Matches
UE::Math::TIntVector2< InIntType > Struct Template Reference

#include <IntVector.h>

Public Types

using IntType = InIntType
 

Public Member Functions

 TIntVector2 ()=default
 
 TIntVector2 (IntType InX, IntType InY)
 
 TIntVector2 (IntType InValue)
 
 TIntVector2 (EForceInit)
 
template<typename OtherIntType >
 TIntVector2 (TIntVector2< OtherIntType > Other)
 
const IntTypeoperator[] (int32 ComponentIndex) const
 
IntTypeoperator[] (int32 ComponentIndex)
 
bool operator== (const TIntVector2 &Other) const
 
bool operator!= (const TIntVector2 &Other) const
 
bool Serialize (FArchive &Ar)
 
bool SerializeFromMismatchedTag (FName StructTag, FArchive &Ar)
 

Public Attributes

union { 
 
   struct { 
 
      IntType   X 
 
      IntType   Y 
 
   }  
 
   IntType   XY [2] 
 
};  
 

Friends

FArchiveoperator<< (FArchive &Ar, TIntVector2 &Vector)
 

Detailed Description

template<typename InIntType>
struct UE::Math::TIntVector2< InIntType >

Definition at line 560 of file IntVector.h.

Member Typedef Documentation

◆ IntType

Definition at line 562 of file IntVector.h.

Constructor & Destructor Documentation

◆ TIntVector2() [1/5]

template<typename InIntType >
UE::Math::TIntVector2< InIntType >::TIntVector2 ( )
default

◆ TIntVector2() [2/5]

template<typename InIntType >
UE::Math::TIntVector2< InIntType >::TIntVector2 ( IntType InX,
IntType InY )
inline

Definition at line 578 of file IntVector.h.

◆ TIntVector2() [3/5]

template<typename InIntType >
UE::Math::TIntVector2< InIntType >::TIntVector2 ( IntType InValue)
inlineexplicit

Definition at line 584 of file IntVector.h.

◆ TIntVector2() [4/5]

template<typename InIntType >
UE::Math::TIntVector2< InIntType >::TIntVector2 ( EForceInit )
inline

Definition at line 590 of file IntVector.h.

◆ TIntVector2() [5/5]

template<typename InIntType >
template<typename OtherIntType >
UE::Math::TIntVector2< InIntType >::TIntVector2 ( TIntVector2< OtherIntType > Other)
inlineexplicit

Converts to another int type. Checks that the cast will succeed.

Definition at line 600 of file IntVector.h.

Member Function Documentation

◆ operator!=()

template<typename InIntType >
bool UE::Math::TIntVector2< InIntType >::operator!= ( const TIntVector2< InIntType > & Other) const
inline

Definition at line 625 of file IntVector.h.

◆ operator==()

Definition at line 620 of file IntVector.h.

◆ operator[]() [1/2]

template<typename InIntType >
IntType & UE::Math::TIntVector2< InIntType >::operator[] ( int32 ComponentIndex)
inline

Definition at line 613 of file IntVector.h.

◆ operator[]() [2/2]

template<typename InIntType >
const IntType & UE::Math::TIntVector2< InIntType >::operator[] ( int32 ComponentIndex) const
inline

Definition at line 606 of file IntVector.h.

◆ Serialize()

template<typename InIntType >
bool UE::Math::TIntVector2< InIntType >::Serialize ( FArchive & Ar)
inline

Definition at line 642 of file IntVector.h.

◆ SerializeFromMismatchedTag()

bool FUint64Vector2::SerializeFromMismatchedTag ( FName StructTag,
FArchive & Ar )
inline

Definition at line 1124 of file IntVector.h.

Friends And Related Symbol Documentation

◆ operator<<

template<typename InIntType >
FArchive & operator<< ( FArchive & Ar,
TIntVector2< InIntType > & Vector )
friend

Serializes the Vector2.

Parameters
ArThe archive to serialize into.
VectorThe vector to serialize.
Returns
Reference to the Archive after serialization.

Definition at line 637 of file IntVector.h.

Member Data Documentation

◆ [union]

union { ... } UE::Math::TIntVector2< InIntType >

◆ X

Definition at line 569 of file IntVector.h.

◆ XY

Definition at line 573 of file IntVector.h.

◆ Y

Definition at line 569 of file IntVector.h.


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