![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <Vector2DHalf.h>
Public Member Functions | |
| UE_FORCEINLINE_HINT | FVector2DHalf () |
| UE_FORCEINLINE_HINT | FVector2DHalf (const FFloat16 &InX, const FFloat16 &InY) |
| UE_FORCEINLINE_HINT | FVector2DHalf (float InX, float InY) |
| UE_FORCEINLINE_HINT | FVector2DHalf (const FVector2f &Vector2D) |
| UE_FORCEINLINE_HINT | FVector2DHalf (const FVector2d &Vector2D) |
| FVector2DHalf & | operator= (const FVector2f &Vector2D) |
| FVector2DHalf & | operator= (const FVector2d &Vector2D) |
| operator FVector2f () const | |
| operator FVector2d () const | |
| void | SetTruncate (float InX, float InY) |
| void | SetTruncate (const FVector2f &Vector2D) |
| void | SetTruncate (const FVector2d &Vector2D) |
| uint32 | AsUInt32 () const |
| FString | ToString () const |
Public Attributes | |
| FFloat16 | X |
| FFloat16 | Y |
Friends | |
| FArchive & | operator<< (FArchive &Ar, FVector2DHalf &V) |
Structure for two dimensional vectors with half floating point precision.
|
inline |
Default Constructor (no initialization).
| UE_FORCEINLINE_HINT FVector2DHalf::FVector2DHalf | ( | const FFloat16 & | InX, |
| const FFloat16 & | InY | ||
| ) |
Constructor.
InX half float X value Iny half float Y value
| UE_FORCEINLINE_HINT FVector2DHalf::FVector2DHalf | ( | float | InX, |
| float | InY | ||
| ) |
Constructor
InX float X value Iny float Y value
| UE_FORCEINLINE_HINT FVector2DHalf::FVector2DHalf | ( | const FVector2f & | Vector2D | ) |
Constructor
Vector2D float vector
| UE_FORCEINLINE_HINT FVector2DHalf::FVector2DHalf | ( | const FVector2d & | Vector2D | ) |
|
inline |
| UE_FORCEINLINE_HINT FVector2DHalf::operator FVector2d | ( | ) | const |
| UE_FORCEINLINE_HINT FVector2DHalf::operator FVector2f | ( | ) | const |
Implicit conversion operator for conversion to FVector2D.
|
inline |
|
inline |
Assignment operator.
| Vector2D | The value to assign. |
| UE_FORCEINLINE_HINT void FVector2DHalf::SetTruncate | ( | const FVector2d & | Vector2D | ) |
| UE_FORCEINLINE_HINT void FVector2DHalf::SetTruncate | ( | const FVector2f & | Vector2D | ) |
Conversion with backwards-compatible Truncate rounding mode (default is RTNE)
| UE_FORCEINLINE_HINT FString FVector2DHalf::ToString | ( | ) | const |
Get a textual representation of the vector.
|
friend |
Serializes the FVector2DHalf.
| Ar | Reference to the serialization archive. |
| V | Reference to the FVector2DHalf being serialized. |
| FFloat16 FVector2DHalf::X |
Holds the vector's X-component.
| FFloat16 FVector2DHalf::Y |
Holds the vector's Y-component.