Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/TVector2
Overloads
| Name |
Remarks |
Include Path |
Unreal Specifiers |
|
Default constructor (no initialization). |
Math/Vector2D.h |
|
|
Constructor initializing both components to a single T value. |
Math/Vector2D.h |
|
|
Constructs a vector from an FIntPoint. |
Math/Vector2D.h |
|
|
|
Math/Vector2D.h |
|
|
Constructor which initializes all components to zero. |
Math/Vector2D.h |
|
|
Constructor that does not initialize. More explicit than the default constructor. |
Math/Vector2D.h |
|
|
Constructs a vector from an FVector. Copies the X and Y components from the FVector. |
Math/Vector2D.h |
|
|
Constructs a vector from an FVector4. |
Math/Vector2D.h |
|
|
Conversion from other type. |
Math/Vector2D.h |
|
|
Constructor using initial values for each component. |
Math/Vector2D.h |
|
TVector2()
Description
Default constructor (no initialization).
| |
|
| Name |
TVector2 |
| Type |
function |
| Header File |
/Engine/Source/Runtime/Core/Public/Math/Vector2D.h |
| Include Path |
#include "Math/Vector2D.h" |
TVector2()
TVector2(T)
Description
Constructor initializing both components to a single T value.
| |
|
| Name |
TVector2 |
| Type |
function |
| Header File |
/Engine/Source/Runtime/Core/Public/Math/Vector2D.h |
| Include Path |
#include "Math/Vector2D.h" |
TVector2
(
T InF
)
Parameters
| Name |
Remarks |
| InF |
Value to set both components to. |
TVector2(TIntPoint< IntType >)
Description
Constructs a vector from an FIntPoint.
| |
|
| Name |
TVector2 |
| Type |
function |
| Header File |
/Engine/Source/Runtime/Core/Public/Math/Vector2D.h |
| Include Path |
#include "Math/Vector2D.h" |
template<typename IntType>
TVector2
(
TIntPoint < IntType > InPos
)
Parameters
| Name |
Remarks |
| InPos |
Integer point used to set this vector. |
TVector2(TIntVector2< IntType >)
| |
|
| Name |
TVector2 |
| Type |
function |
| Header File |
/Engine/Source/Runtime/Core/Public/Math/Vector2D.h |
| Include Path |
#include "Math/Vector2D.h" |
template<typename IntType>
TVector2
(
TIntVector2 < IntType > V
)
TVector2(EForceInit)
Description
Constructor which initializes all components to zero.
| |
|
| Name |
TVector2 |
| Type |
function |
| Header File |
/Engine/Source/Runtime/Core/Public/Math/Vector2D.h |
| Include Path |
#include "Math/Vector2D.h" |
TVector2
(
EForceInit
)
Parameters
| Name |
Remarks |
| EForceInit |
Force init enum |
TVector2(ENoInit)
Description
Constructor that does not initialize. More explicit than the default constructor.
| |
|
| Name |
TVector2 |
| Type |
function |
| Header File |
/Engine/Source/Runtime/Core/Public/Math/Vector2D.h |
| Include Path |
#include "Math/Vector2D.h" |
TVector2
(
ENoInit
)
Parameters
| Name |
Remarks |
| ENoInit |
Don't init |
TVector2(const TVector< T > &)
Description
Constructs a vector from an FVector. Copies the X and Y components from the FVector.
| |
|
| Name |
TVector2 |
| Type |
function |
| Header File |
/Engine/Source/Runtime/Core/Public/Math/Vector2D.h |
| Include Path |
#include "Math/Vector2D.h" |
| Source |
/Engine/Source/Runtime/Core/Public/Math/Vector.h |
TVector2
(
const TVector < T > & V
)
Parameters
| Name |
Remarks |
| V |
Vector to copy from. |
TVector2(const TVector4< T > &)
Description
Constructs a vector from an FVector4. Copies the X and Y components from the FVector4.
FVector2D inline functions
| |
|
| Name |
TVector2 |
| Type |
function |
| Header File |
/Engine/Source/Runtime/Core/Public/Math/Vector2D.h |
| Include Path |
#include "Math/Vector2D.h" |
| Source |
/Engine/Source/Runtime/Core/Public/Math/Vector4.h |
TVector2
(
const TVector4 < T > & V
)
Parameters
| Name |
Remarks |
| V |
Vector to copy from. |
TVector2(const TVector2< FArg > &)
Description
Conversion from other type.
| |
|
| Name |
TVector2 |
| Type |
function |
| Header File |
/Engine/Source/Runtime/Core/Public/Math/Vector2D.h |
| Include Path |
#include "Math/Vector2D.h" |
template<typename FArg, std::enable_if_t<(!std::is_same_v< T, FArg >), int >>
TVector2
(
const TVector2 < FArg > & From
)
TVector2(T, T)
Description
Constructor using initial values for each component.
| |
|
| Name |
TVector2 |
| Type |
function |
| Header File |
/Engine/Source/Runtime/Core/Public/Math/Vector2D.h |
| Include Path |
#include "Math/Vector2D.h" |
TVector2
(
T InX,
T InY
)
Parameters
| Name |
Remarks |
| InX |
X coordinate. |
| InY |
Y coordinate. |