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

#include <IntVector.h>

Public Types

using IntType = InIntType
 

Public Member Functions

 TIntVector4 ()=default
 
 TIntVector4 (IntType InX, IntType InY, IntType InZ, IntType InW)
 
 TIntVector4 (IntType InValue)
 
 TIntVector4 (const TIntVector3< IntType > &InValue, IntType InW=0)
 
 TIntVector4 (EForceInit)
 
template<typename OtherIntType >
 TIntVector4 (TIntVector4< OtherIntType > Other)
 
const IntTypeoperator() (int32 ComponentIndex) const
 
IntTypeoperator() (int32 ComponentIndex)
 
const IntTypeoperator[] (int32 ComponentIndex) const
 
IntTypeoperator[] (int32 ComponentIndex)
 
bool operator== (const TIntVector4 &Other) const
 
bool operator!= (const TIntVector4 &Other) const
 
TIntVector4operator*= (const TIntVector4 &Other)
 
TIntVector4operator*= (IntType Scale)
 
TIntVector4operator/= (IntType Divisor)
 
TIntVector4operator%= (IntType Divisor)
 
TIntVector4operator+= (const TIntVector4 &Other)
 
TIntVector4operator-= (const TIntVector4 &Other)
 
TIntVector4operator= (const TIntVector4 &Other)
 
TIntVector4 operator* (const TIntVector4 &Other) const
 
TIntVector4 operator* (IntType Scale) const
 
TIntVector4 operator/ (IntType Divisor) const
 
TIntVector4 operator% (IntType Divisor) const
 
TIntVector4 operator+ (const TIntVector4 &Other) const
 
TIntVector4 operator- (const TIntVector4 &Other) const
 
TIntVector4 operator>> (IntType Shift) const
 
TIntVector4 operator<< (IntType Shift) const
 
TIntVector4 operator& (IntType Value) const
 
TIntVector4 operator| (IntType Value) const
 
TIntVector4 operator^ (IntType Value) const
 
bool Serialize (FArchive &Ar)
 
bool SerializeFromMismatchedTag (FName StructTag, FArchive &Ar)
 

Public Attributes

union { 
 
   struct { 
 
      IntType   X 
 
      IntType   Y 
 
      IntType   Z 
 
      IntType   W 
 
   }  
 
   IntType   XYZW [4] 
 
};  
 

Friends

FArchiveoperator<< (FArchive &Ar, TIntVector4 &Vector)
 
void operator<< (FStructuredArchive::FSlot Slot, TIntVector4 &Vector)
 

Detailed Description

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

Definition at line 654 of file IntVector.h.

Member Typedef Documentation

◆ IntType

Definition at line 656 of file IntVector.h.

Constructor & Destructor Documentation

◆ TIntVector4() [1/6]

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

◆ TIntVector4() [2/6]

template<typename InIntType >
UE::Math::TIntVector4< InIntType >::TIntVector4 ( IntType InX,
IntType InY,
IntType InZ,
IntType InW )
inline

Definition at line 672 of file IntVector.h.

◆ TIntVector4() [3/6]

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

Definition at line 680 of file IntVector.h.

◆ TIntVector4() [4/6]

template<typename InIntType >
UE::Math::TIntVector4< InIntType >::TIntVector4 ( const TIntVector3< IntType > & InValue,
IntType InW = 0 )
inlineexplicit

Definition at line 688 of file IntVector.h.

◆ TIntVector4() [5/6]

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

Definition at line 696 of file IntVector.h.

◆ TIntVector4() [6/6]

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

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

Definition at line 708 of file IntVector.h.

Member Function Documentation

◆ operator!=()

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

Compares points for inequality.

Parameters
OtherThe other int point being compared.
Returns
true if the points are not equal, false otherwise..

Definition at line 785 of file IntVector.h.

◆ operator%()

Gets the remainder of division on this point.

Parameters
DivisorWhat to divide the point by.
Returns
A new remainder int point.

Definition at line 941 of file IntVector.h.

◆ operator%=()

Remainder of division of this point.

Parameters
DivisorWhat to divide the point by.
Returns
Reference to this point after remainder.

Definition at line 844 of file IntVector.h.

◆ operator&()

Component-wise AND.

Parameters
ValueNumber to AND with the each component.
Returns
A new shifted int point.

Definition at line 996 of file IntVector.h.

◆ operator()() [1/2]

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

Gets specific component of a point.

Parameters
ComponentIndexIndex of point component.
Returns
reference to component.

Definition at line 735 of file IntVector.h.

◆ operator()() [2/2]

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

Gets specific component of a point.

Parameters
ComponentIndexIndex of point component.
Returns
const reference to component.

Definition at line 722 of file IntVector.h.

◆ operator*() [1/2]

Gets the result of component-wise multiplication of this point by another.

Parameters
OtherThe point to multiply with.
Returns
The result of multiplication.

Definition at line 908 of file IntVector.h.

◆ operator*() [2/2]

Gets the result of scaling on this point.

Parameters
ScaleWhat to multiply the point by.
Returns
A new scaled int point.

Definition at line 919 of file IntVector.h.

◆ operator*=() [1/2]

Multiplies this vector with another vector, using component-wise multiplication.

Parameters
OtherThe point to multiply with.
Returns
Reference to this point after multiplication.

Definition at line 796 of file IntVector.h.

◆ operator*=() [2/2]

Scales this point.

Parameters
ScaleWhat to multiply the point by.
Returns
Reference to this point after multiplication.

Definition at line 812 of file IntVector.h.

◆ operator+()

Gets the result of addition on this point.

Parameters
OtherThe other point to add to this.
Returns
A new combined int point.

Definition at line 952 of file IntVector.h.

◆ operator+=()

Adds to this point.

Parameters
OtherThe point to add to this point.
Returns
Reference to this point after addition.

Definition at line 860 of file IntVector.h.

◆ operator-()

Gets the result of subtraction from this point.

Parameters
OtherThe other point to subtract from this.
Returns
A new subtracted int point.

Definition at line 963 of file IntVector.h.

◆ operator-=()

Subtracts from this point.

Parameters
OtherThe point to subtract from this point.
Returns
Reference to this point after subtraction.

Definition at line 876 of file IntVector.h.

◆ operator/()

Gets the result of division on this point.

Parameters
DivisorWhat to divide the point by.
Returns
A new divided int point.

Definition at line 930 of file IntVector.h.

◆ operator/=()

Divides this point.

Parameters
DivisorWhat to divide the point by.
Returns
Reference to this point after division.

Definition at line 828 of file IntVector.h.

◆ operator<<()

Shifts all components to the left.

Parameters
ShiftThe number of bits to shift.
Returns
A new shifted int point.

Definition at line 985 of file IntVector.h.

◆ operator=()

Assigns another point to this one.

Parameters
OtherThe point to assign this point from.
Returns
Reference to this point after assignment.

Definition at line 892 of file IntVector.h.

◆ operator==()

Compares points for equality.

Parameters
OtherThe other int point being compared.
Returns
true if the points are equal, false otherwise..

Definition at line 774 of file IntVector.h.

◆ operator>>()

Shifts all components to the right.

Parameters
ShiftThe number of bits to shift.
Returns
A new shifted int point.

Definition at line 974 of file IntVector.h.

◆ operator[]() [1/2]

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

Gets specific component of a point.

Parameters
ComponentIndexIndex of point component.
Returns
reference to component.

Definition at line 761 of file IntVector.h.

◆ operator[]() [2/2]

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

Gets specific component of a point.

Parameters
ComponentIndexIndex of point component.
Returns
const reference to component.

Definition at line 748 of file IntVector.h.

◆ operator^()

Component-wise XOR.

Parameters
ValueNumber to XOR with the each component.
Returns
A new shifted int point.

Definition at line 1018 of file IntVector.h.

◆ operator|()

Component-wise OR.

Parameters
ValueNumber to OR with the each component.
Returns
A new shifted int point.

Definition at line 1007 of file IntVector.h.

◆ Serialize()

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

Definition at line 1044 of file IntVector.h.

◆ SerializeFromMismatchedTag()

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

Definition at line 1172 of file IntVector.h.

Friends And Related Symbol Documentation

◆ operator<< [1/2]

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

Serializes the Vector4.

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

Definition at line 1030 of file IntVector.h.

◆ operator<< [2/2]

template<typename InIntType >
void operator<< ( FStructuredArchive::FSlot Slot,
TIntVector4< InIntType > & Vector )
friend

Definition at line 1035 of file IntVector.h.

Member Data Documentation

◆ [union]

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

◆ W

Definition at line 663 of file IntVector.h.

◆ X

Definition at line 663 of file IntVector.h.

◆ XYZW

Definition at line 667 of file IntVector.h.

◆ Y

Definition at line 663 of file IntVector.h.

◆ Z

Definition at line 663 of file IntVector.h.


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