Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/TVector4
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TVector4
(
const UE::Math::TVector< T >& InVector |
Constructor from 3D TVector. | Math/Vector4.h | |
TVector4
(
const FLinearColor& InColor |
Creates and initializes a new vector from a color value. | Math/Vector4.h | |
TVector4
(
const TIntVector4< IntType >& InVector |
Creates and initializes a new vector from an int vector value. | Math/Vector4.h | |
TVector4
(
EForceInit |
Creates and initializes a new vector to zero. | Math/Vector4.h | |
| Creates an uninitialized new vector. | Math/Vector4.h | ||
| Conversion from other type: double->float. | Math/Vector4.h | ||
| Conversion from other type: float->double. | Math/Vector4.h | ||
TVector4
(
const UE::Math::TVector< T >& InVector, |
Constructor. | Math/Vector4.h | |
TVector4
(
const UE::Math::TVector4< T >& InVector, |
Constructor allowing copying of an TVector4 whilst setting up a new W component. | Math/Vector4.h | |
TVector4
(
const FLinearColor& InColor, |
Creates and initializes a new vector from a color RGB and W | Math/Vector4.h | |
| Creates and initializes a new vector from the specified 2D vectors. | Math/Vector4.h | ||
TVector4
(
T InX, |
Creates and initializes a new vector from the specified components. | Math/Vector4.h |
TVector4(const UE::Math::TVector< T > &)
Description
Constructor from 3D TVector. W is set to 1.
TVector4 inline functions
| Name | TVector4 |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Math/Vector4.h |
| Include Path | #include "Math/Vector4.h" |
TVector4
(
const UE::Math::TVector < T > & InVector
)
Parameters
| Name | Remarks |
|---|---|
| InVector | 3D Vector to set first three components. |
TVector4(const FLinearColor &)
Description
Creates and initializes a new vector from a color value.
| Name | TVector4 |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Math/Vector4.h |
| Include Path | #include "Math/Vector4.h" |
TVector4
(
const FLinearColor & InColor
)
Parameters
| Name | Remarks |
|---|---|
| InColour | Color used to set vector. |
TVector4(const TIntVector4< IntType > &)
Description
Creates and initializes a new vector from an int vector value.
| Name | TVector4 |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Math/Vector4.h |
| Include Path | #include "Math/Vector4.h" |
template<typename IntType>
TVector4
(
const TIntVector4 < IntType > & InVector
)
Parameters
| Name | Remarks |
|---|---|
| InVector | IntVector used to set vector. |
TVector4(EForceInit)
Description
Creates and initializes a new vector to zero.
| Name | TVector4 |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Math/Vector4.h |
| Include Path | #include "Math/Vector4.h" |
TVector4
(
EForceInit
)
Parameters
| Name | Remarks |
|---|---|
| EForceInit | Force Init Enum. |
TVector4(ENoInit)
Description
Creates an uninitialized new vector.
| Name | TVector4 |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Math/Vector4.h |
| Include Path | #include "Math/Vector4.h" |
TVector4
(
ENoInit
)
Parameters
| Name | Remarks |
|---|---|
| ENoInit | Force uninitialized enum. |
TVector4(const TVector4< FArg > &)
Description
Conversion from other type: double->float.
| Name | TVector4 |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Math/Vector4.h |
| Include Path | #include "Math/Vector4.h" |
template<typename FArg, std::enable_if_t<(std::is_same_v< FArg, double > &&std::is_same_v< T, float >), int >>
TVector4
(
const TVector4 < FArg > & From
)
TVector4(const TVector4< FArg > &)
Description
Conversion from other type: float->double.
| Name | TVector4 |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Math/Vector4.h |
| Include Path | #include "Math/Vector4.h" |
template<typename FArg, std::enable_if_t<(std::is_same_v< FArg, float > &&std::is_same_v< T, double >), int >>
TVector4
(
const TVector4 < FArg > & From
)
TVector4(const UE::Math::TVector< T > &, FArg)
Description
Constructor.
| Name | TVector4 |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Math/Vector4.h |
| Include Path | #include "Math/Vector4.h" |
template<typename FArg, std::enable_if_t<(std::is_arithmetic_v< FArg >), int >>
TVector4
(
const UE::Math::TVector < T > & InVector,
FArg InW
)
Parameters
| Name | Remarks |
|---|---|
| InVector | 3D Vector to set first three components. |
| InW | W Coordinate. |
TVector4(const UE::Math::TVector4< T > &, FArg)
Description
Constructor allowing copying of an TVector4 whilst setting up a new W component.
| Name | TVector4 |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Math/Vector4.h |
| Include Path | #include "Math/Vector4.h" |
template<typename FArg, std::enable_if_t<(std::is_arithmetic_v< FArg >), int >>
TVector4
(
const UE::Math::TVector4 < T > & InVector,
FArg OverrideW
)
Parameters
| Name | Remarks |
|---|---|
| InVector | 4D Vector to set first three components. |
| InOverrideW | Replaces W Coordinate of InVector. |
TVector4(const FLinearColor &, T)
Description
Creates and initializes a new vector from a color RGB and W
| Name | TVector4 |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Math/Vector4.h |
| Include Path | #include "Math/Vector4.h" |
TVector4
(
const FLinearColor & InColor,
T InOverrideW
)
Parameters
| Name | Remarks |
|---|---|
| InColour | Color used to set XYZ. |
| InOverrideW |
TVector4(TVector2< T >, TVector2< T >)
Description
Creates and initializes a new vector from the specified 2D vectors.
| Name | TVector4 |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Math/Vector4.h |
| Include Path | #include "Math/Vector4.h" |
TVector4
(
TVector2 < T > InXY,
TVector2 < T > InZW
)
Parameters
| Name | Remarks |
|---|---|
| InXY | A 2D vector holding the X- and Y-components. |
| InZW | A 2D vector holding the Z- and W-components. |
TVector4(T, T, T, T)
Description
Creates and initializes a new vector from the specified components.
NOTE: This default constructor is unlike TVector, TMatrix etc. in that it actually initializes the instance. Ideally it should be = default; in the same way, but this would break backwards compatibility.
| Name | TVector4 |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Math/Vector4.h |
| Include Path | #include "Math/Vector4.h" |
TVector4
(
T InX,
T InY,
T InZ,
T InW
)
Parameters
| Name | Remarks |
|---|---|
| InX | X Coordinate. |
| InY | Y Coordinate. |
| InZ | Z Coordinate. |
| InW | W Coordinate. |