Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/TVector
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TVector () |
Default constructor (no initialization). | Math/Vector.h | |
TVector
(
T InF |
Constructor initializing all components to a single T value. | Math/Vector.h | |
TVector
(
const UE::Math::TVector4< T >& V |
Constructor using the XYZ components from a 4D vector.FVector inline functions | Math/Vector.h | |
TVector
(
const FLinearColor& InColor |
Constructs a vector from an FLinearColor. | Math/Vector.h | |
TVector
(
TIntVector3< IntType > InVector |
Constructs a vector from an FIntVector. | Math/Vector.h | |
| Constructs a vector from an FIntPoint. | Math/Vector.h | ||
TVector
(
EForceInit |
Constructor which initializes all components to zero. | Math/Vector.h | |
| Conversion from other type. | Math/Vector.h | ||
constexpr TVector
(
T InF, |
Math/Vector.h | ||
| Constructs a vector from an TVector2 |
Math/Vector.h | ||
TVector
(
T InX, |
Constructor using initial values for each component. | Math/Vector.h |
TVector()
Description
Default constructor (no initialization).
| Name | TVector |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Math/Vector.h |
| Include Path | #include "Math/Vector.h" |
TVector()
TVector(T)
Description
Constructor initializing all components to a single T value.
| Name | TVector |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Math/Vector.h |
| Include Path | #include "Math/Vector.h" |
TVector
(
T InF
)
Parameters
| Name | Remarks |
|---|---|
| InF | Value to set all components to. |
TVector(const UE::Math::TVector4< T > &)
Description
Constructor using the XYZ components from a 4D vector.
FVector inline functions
| Name | TVector |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Math/Vector.h |
| Include Path | #include "Math/Vector.h" |
| Source | /Engine/Source/Runtime/Core/Public/Math/Vector4.h |
TVector
(
const UE::Math::TVector4 < T > & V
)
Parameters
| Name | Remarks |
|---|---|
| V | 4D Vector to copy from. |
TVector(const FLinearColor &)
Description
Constructs a vector from an FLinearColor.
| Name | TVector |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Math/Vector.h |
| Include Path | #include "Math/Vector.h" |
TVector
(
const FLinearColor & InColor
)
Parameters
| Name | Remarks |
|---|---|
| InColor | Color to copy from. |
TVector(TIntVector3< IntType >)
Description
Constructs a vector from an FIntVector.
| Name | TVector |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Math/Vector.h |
| Include Path | #include "Math/Vector.h" |
template<typename IntType>
TVector
(
TIntVector3 < IntType > InVector
)
Parameters
| Name | Remarks |
|---|---|
| InVector | FIntVector to copy from. |
TVector(TIntPoint< IntType >)
Description
Constructs a vector from an FIntPoint.
| Name | TVector |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Math/Vector.h |
| Include Path | #include "Math/Vector.h" |
template<typename IntType>
TVector
(
TIntPoint < IntType > A
)
Parameters
| Name | Remarks |
|---|---|
| A | Int Point used to set X and Y coordinates, Z is set to zero. |
TVector(EForceInit)
Description
Constructor which initializes all components to zero.
| Name | TVector |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Math/Vector.h |
| Include Path | #include "Math/Vector.h" |
TVector
(
EForceInit
)
Parameters
| Name | Remarks |
|---|---|
| EForceInit | Force init enum |
TVector(const TVector< FArg > &)
Description
Conversion from other type.
| Name | TVector |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Math/Vector.h |
| Include Path | #include "Math/Vector.h" |
template<typename FArg, std::enable_if_t<(!std::is_same_v< T, FArg >), int >>
TVector
(
const TVector < FArg > & From
)
TVector(T, TVectorConstInit)
| Name | TVector |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Math/Vector.h |
| Include Path | #include "Math/Vector.h" |
constexpr TVector
(
T InF,
TVectorConstInit
)
TVector(const TVector2< T >, T)
Description
Constructs a vector from an TVector2
FVector inline functions
| Name | TVector |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Math/Vector.h |
| Include Path | #include "Math/Vector.h" |
TVector
(
const TVector2 < T > V,
T InZ
)
Parameters
| Name | Remarks |
|---|---|
| V | Vector to copy from. |
| InZ | Z Coordinate. |
TVector(T, T, T)
Description
Constructor using initial values for each component.
| Name | TVector |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Math/Vector.h |
| Include Path | #include "Math/Vector.h" |
TVector
(
T InX,
T InY,
T InZ
)
Parameters
| Name | Remarks |
|---|---|
| InX | X Coordinate. |
| InY | Y Coordinate. |
| InZ | Z Coordinate. |