UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
Vector4.h File Reference
#include "CoreTypes.h"
#include "Misc/Crc.h"
#include "Math/MathFwd.h"
#include "Math/UnrealMathUtility.h"
#include "Containers/UnrealString.h"
#include "Misc/Parse.h"
#include "Misc/LargeWorldCoordinatesSerializer.h"
#include "Logging/LogMacros.h"
#include "Math/Vector2D.h"
#include "Math/Vector.h"
#include "Serialization/MemoryLayout.h"
#include "Templates/Requires.h"
#include <type_traits>

Go to the source code of this file.

Classes

struct  UE::Math::TVector4< T >
 
struct  TIsPODType< FVector4f >
 
struct  TIsPODType< FVector4d >
 
struct  TIsUECoreVariant< FVector4f >
 
struct  TIsUECoreVariant< FVector4d >
 
struct  TCanBulkSerialize< FVector4f >
 
struct  TCanBulkSerialize< FVector4d >
 

Namespaces

namespace  UE
 
namespace  UE::Math
 

Functions

FArchiveUE::Math::operator<< (FArchive &Ar, TVector4< float > &V)
 
FArchiveUE::Math::operator<< (FArchive &Ar, TVector4< double > &V)
 
 UE_DECLARE_LWC_TYPE (Vector4)
 
 DECLARE_INTRINSIC_TYPE_LAYOUT (FVector4f)
 
 DECLARE_INTRINSIC_TYPE_LAYOUT (FVector4d)
 
template<typename T >
UE_FORCEINLINE_HINTDot3 (const UE::Math::TVector4< T > &V1, const UE::Math::TVector4< T > &V2)
 
template<typename T >
UE_FORCEINLINE_HINTDot3 (const UE::Math::TVector4< T > &V1, const UE::Math::TVector< T > &V2)
 
template<typename T >
UE_FORCEINLINE_HINTDot3 (const UE::Math::TVector< T > &V1, const UE::Math::TVector4< T > &V2)
 
template<typename T >
UE_FORCEINLINE_HINTDot4 (const UE::Math::TVector4< T > &V1, const UE::Math::TVector4< T > &V2)
 
template<typename T , typename T2 UE_REQUIRES>
UE_FORCEINLINE_HINT TVector4< T > UE::Math::operator* (T2 Scale, const TVector4< T > &V)
 

Function Documentation

◆ DECLARE_INTRINSIC_TYPE_LAYOUT() [1/2]

DECLARE_INTRINSIC_TYPE_LAYOUT ( FVector4d  )

◆ DECLARE_INTRINSIC_TYPE_LAYOUT() [2/2]

DECLARE_INTRINSIC_TYPE_LAYOUT ( FVector4f  )

◆ Dot3() [1/3]

template<typename T >
UE_FORCEINLINE_HINT T Dot3 ( const UE::Math::TVector4< T > &  V1,
const UE::Math::TVector4< T > &  V2 
)

Calculates 3D Dot product of two 4D vectors.

Parameters
V1The first vector.
V2The second vector.
Returns
The 3D Dot product.

◆ Dot3() [2/3]

template<typename T >
UE_FORCEINLINE_HINT T Dot3 ( const UE::Math::TVector4< T > &  V1,
const UE::Math::TVector< T > &  V2 
)

Calculates 3D Dot product of one 4D vectors and one 3D vector

Parameters
V1The first vector.
V2The second vector.
Returns
The 3D Dot product.

◆ Dot3() [3/3]

template<typename T >
UE_FORCEINLINE_HINT T Dot3 ( const UE::Math::TVector< T > &  V1,
const UE::Math::TVector4< T > &  V2 
)

◆ Dot4()

template<typename T >
UE_FORCEINLINE_HINT T Dot4 ( const UE::Math::TVector4< T > &  V1,
const UE::Math::TVector4< T > &  V2 
)

Calculates 4D Dot product.

Parameters
V1The first vector.
V2The second vector.
Returns
The 4D Dot Product.

◆ UE_DECLARE_LWC_TYPE()

UE_DECLARE_LWC_TYPE ( Vector4  )