UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
Chaos::TVector< T, d > Class Template Reference

#include <Vector.h>

Public Types

using FElement = T
 
using FTraits = TVectorTraits< T, d >
 

Public Member Functions

 TVector (const TVector &)=default
 
TVectoroperator= (const TVector &)=default
 
 TVector ()=default
 
 TVector (const FElement &Element)
 
 TVector (std::initializer_list< T > InElements)
 
template<int N = d, typename std::enable_if< N==2, int >::type = 0>
 TVector (const T &V0, const T &V1)
 
template<int N = d, typename std::enable_if< N==3, int >::type = 0>
 TVector (const T &V0, const T &V1, const T &V2)
 
template<int N = d, typename std::enable_if< N==4, int >::type = 0>
 TVector (const T &V0, const T &V1, const T &V2, const T &V3)
 
template<int N = d, typename std::enable_if< N==3, int >::type = 0>
 TVector (const FVector3f &Other)
 
template<int N = d, typename std::enable_if< N==3, int >::type = 0>
 TVector (const FVector3d &Other)
 
template<class T2 >
 TVector (const TVector< T2, d > &Other)
 
template<class T2 >
TVector< T, d > & operator= (const TVector< T2, d > &Other)
 
FElementoperator[] (int Index)
 
const FElementoperator[] (int Index) const
 
int32 Num () const
 
bool ContainsNaN () const
 

Static Public Attributes

static const int NumElements = d
 

Friends

bool operator== (const TVector< T, d > &L, const TVector< T, d > &R)
 
bool operator!= (const TVector< T, d > &L, const TVector< T, d > &R)
 

Member Typedef Documentation

◆ FElement

template<class T , int d>
using Chaos::TVector< T, d >::FElement = T

◆ FTraits

template<class T , int d>
using Chaos::TVector< T, d >::FTraits = TVectorTraits<T, d>

Constructor & Destructor Documentation

◆ TVector() [1/10]

template<class T , int d>
Chaos::TVector< T, d >::TVector ( const TVector< T, d > &  )
default

◆ TVector() [2/10]

template<class T , int d>
Chaos::TVector< T, d >::TVector ( )
default

◆ TVector() [3/10]

template<class T , int d>
Chaos::TVector< T, d >::TVector ( const FElement Element)
inlineexplicit

◆ TVector() [4/10]

template<class T , int d>
Chaos::TVector< T, d >::TVector ( std::initializer_list< T >  InElements)
inline

◆ TVector() [5/10]

template<class T , int d>
template<int N = d, typename std::enable_if< N==2, int >::type = 0>
Chaos::TVector< T, d >::TVector ( const T &  V0,
const T &  V1 
)
inline

◆ TVector() [6/10]

template<class T , int d>
template<int N = d, typename std::enable_if< N==3, int >::type = 0>
Chaos::TVector< T, d >::TVector ( const T &  V0,
const T &  V1,
const T &  V2 
)
inline

◆ TVector() [7/10]

template<class T , int d>
template<int N = d, typename std::enable_if< N==4, int >::type = 0>
Chaos::TVector< T, d >::TVector ( const T &  V0,
const T &  V1,
const T &  V2,
const T &  V3 
)
inline

◆ TVector() [8/10]

template<class T , int d>
template<int N = d, typename std::enable_if< N==3, int >::type = 0>
Chaos::TVector< T, d >::TVector ( const FVector3f Other)
inline

◆ TVector() [9/10]

template<class T , int d>
template<int N = d, typename std::enable_if< N==3, int >::type = 0>
Chaos::TVector< T, d >::TVector ( const FVector3d Other)
inline

◆ TVector() [10/10]

template<class T , int d>
template<class T2 >
Chaos::TVector< T, d >::TVector ( const TVector< T2, d > &  Other)
inline

Member Function Documentation

◆ ContainsNaN()

template<class T , int d>
bool Chaos::TVector< T, d >::ContainsNaN ( ) const
inline

◆ Num()

template<class T , int d>
int32 Chaos::TVector< T, d >::Num ( ) const
inline

◆ operator=() [1/2]

template<class T , int d>
TVector & Chaos::TVector< T, d >::operator= ( const TVector< T, d > &  )
default

◆ operator=() [2/2]

template<class T , int d>
template<class T2 >
TVector< T, d > & Chaos::TVector< T, d >::operator= ( const TVector< T2, d > &  Other)
inline

◆ operator[]() [1/2]

template<class T , int d>
FElement & Chaos::TVector< T, d >::operator[] ( int  Index)
inline

◆ operator[]() [2/2]

template<class T , int d>
const FElement & Chaos::TVector< T, d >::operator[] ( int  Index) const
inline

Friends And Related Symbol Documentation

◆ operator!=

template<class T , int d>
bool operator!= ( const TVector< T, d > &  L,
const TVector< T, d > &  R 
)
friend

◆ operator==

template<class T , int d>
bool operator== ( const TVector< T, d > &  L,
const TVector< T, d > &  R 
)
friend

Member Data Documentation

◆ NumElements

template<class T , int d>
const int Chaos::TVector< T, d >::NumElements = d
static

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