TVector4::TVector4

Constructor allowing copying of an [TVector4](API\Runtime\Core\TVector4) whilst setting up a new W component.

Choose your operating system:

Windows

macOS

Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Math/Vector4.h

Include

#include "Math/Vector4.h"

Syntax

template<typename FArg, typename TEnableIf< std::is_arithmetic< FArg >::value, int >::type>
TVector4
(
    const UE::Math::TVector4< float > & InVector,
    FArg OverrideW
)

Remarks

Constructor allowing copying of an TVector4 whilst setting up a new W component.

Parameters

Parameter

Description

InVector

4D Vector to set first three components.

InOverrideW

Replaces W Coordinate of InVector.