Navigation
API > API/Runtime > API/Runtime/Core
Structure for two dimensional vectors with half floating point precision.
| Name | FVector2DHalf |
| Type | struct |
| Header File | /Engine/Source/Runtime/Core/Public/Math/Vector2DHalf.h |
| Include Path | #include "Math/Vector2DHalf.h" |
Syntax
struct FVector2DHalf
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| Default Constructor (no initialization). | Math/Vector2DHalf.h | ||
FVector2DHalf
(
const FVector2f& Vector2D |
ConstructorVector2D float vector | Math/Vector2DHalf.h | |
FVector2DHalf
(
const FVector2d& Vector2D |
LWC_TODO: Precision loss. | Math/Vector2DHalf.h | |
FVector2DHalf
(
const FFloat16& InX, |
Constructor. | Math/Vector2DHalf.h | |
FVector2DHalf
(
float InX, |
ConstructorInX float X value Iny float Y value | Math/Vector2DHalf.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| X | FFloat16 | Holds the vector's X-component. | Math/Vector2DHalf.h | |
| Y | FFloat16 | Holds the vector's Y-component. | Math/Vector2DHalf.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
uint32 AsUInt32() |
Math/Vector2DHalf.h | ||
void SetTruncate
(
const FVector2f& Vector2D |
Math/Vector2DHalf.h | ||
void SetTruncate
(
const FVector2d& Vector2D |
Math/Vector2DHalf.h | ||
void SetTruncate
(
float InX, |
Conversion with backwards-compatible Truncate rounding mode (default is RTNE) | Math/Vector2DHalf.h | |
FString ToString() |
Get a textual representation of the vector. | Math/Vector2DHalf.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
operator FVector2d() |
Math/Vector2DHalf.h | ||
operator FVector2f() |
Implicit conversion operator for conversion to FVector2D. | Math/Vector2DHalf.h | |
FVector2DHalf & operator=
(
const FVector2f& Vector2D |
Assignment operator. | Math/Vector2DHalf.h | |
FVector2DHalf & operator=
(
const FVector2d& Vector2D |
LWC_TODO: Precision loss. | Math/Vector2DHalf.h |