UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FVector2DHalf Struct Reference

#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)
 
FVector2DHalfoperator= (const FVector2f &Vector2D)
 
FVector2DHalfoperator= (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

FArchiveoperator<< (FArchive &Ar, FVector2DHalf &V)
 

Detailed Description

Structure for two dimensional vectors with half floating point precision.

Constructor & Destructor Documentation

◆ FVector2DHalf() [1/5]

UE_FORCEINLINE_HINT FVector2DHalf::FVector2DHalf ( )
inline

Default Constructor (no initialization).

◆ FVector2DHalf() [2/5]

UE_FORCEINLINE_HINT FVector2DHalf::FVector2DHalf ( const FFloat16 InX,
const FFloat16 InY 
)

Constructor.

InX half float X value Iny half float Y value

◆ FVector2DHalf() [3/5]

UE_FORCEINLINE_HINT FVector2DHalf::FVector2DHalf ( float  InX,
float  InY 
)

Constructor

InX float X value Iny float Y value

◆ FVector2DHalf() [4/5]

UE_FORCEINLINE_HINT FVector2DHalf::FVector2DHalf ( const FVector2f Vector2D)

Constructor

Vector2D float vector

◆ FVector2DHalf() [5/5]

UE_FORCEINLINE_HINT FVector2DHalf::FVector2DHalf ( const FVector2d Vector2D)

Member Function Documentation

◆ AsUInt32()

uint32 FVector2DHalf::AsUInt32 ( ) const
inline

◆ operator FVector2d()

UE_FORCEINLINE_HINT FVector2DHalf::operator FVector2d ( ) const

◆ operator FVector2f()

UE_FORCEINLINE_HINT FVector2DHalf::operator FVector2f ( ) const

Implicit conversion operator for conversion to FVector2D.

◆ operator=() [1/2]

FVector2DHalf & FVector2DHalf::operator= ( const FVector2d Vector2D)
inline

◆ operator=() [2/2]

FVector2DHalf & FVector2DHalf::operator= ( const FVector2f Vector2D)
inline

Assignment operator.

Parameters
Vector2DThe value to assign.

◆ SetTruncate() [1/3]

UE_FORCEINLINE_HINT void FVector2DHalf::SetTruncate ( const FVector2d Vector2D)

◆ SetTruncate() [2/3]

UE_FORCEINLINE_HINT void FVector2DHalf::SetTruncate ( const FVector2f Vector2D)

◆ SetTruncate() [3/3]

void FVector2DHalf::SetTruncate ( float  InX,
float  InY 
)
inline

Conversion with backwards-compatible Truncate rounding mode (default is RTNE)

◆ ToString()

UE_FORCEINLINE_HINT FString FVector2DHalf::ToString ( ) const

Get a textual representation of the vector.

Returns
Text describing the vector.

Friends And Related Symbol Documentation

◆ operator<<

FArchive & operator<< ( FArchive Ar,
FVector2DHalf V 
)
friend

Serializes the FVector2DHalf.

Parameters
ArReference to the serialization archive.
VReference to the FVector2DHalf being serialized.
Returns
Reference to the Archive after serialization.

Member Data Documentation

◆ X

FFloat16 FVector2DHalf::X

Holds the vector's X-component.

◆ Y

FFloat16 FVector2DHalf::Y

Holds the vector's Y-component.


The documentation for this struct was generated from the following file: