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