Navigation
Unreal Engine C++ API Reference > Runtime > SlateCore > Types
Inheritance Hierarchy
- TVector2
- FDeprecateSlateVector2D
References
Module | SlateCore |
Header | /Engine/Source/Runtime/SlateCore/Public/Types/SlateVector2.h |
Include | #include "Types/SlateVector2.h" |
Syntax
struct FDeprecateSlateVector2D : public UE::Math::TVector2< float >
Remarks
Defines a return value or persistent member variable that was previously an FVector2D but is in the process of being deprecated in favor of FVector2f. Once deprecated completely, usages will be converted to using FVector2f directly. It is not (and will never be) constructible from double precision types.
This type is implicitly convertible to FVector2D, and can be operated on as if it were an FVector2D, but will emit deprecation warnings under these situations where UE_REPORT_SLATE_VECTOR_DEPRECATION is enabled.
This type should not be used as a parameter, where FDeprecateVector2DParameter is preferred due to its implicit conversion from many types, and separate deprecation mechanisms.
NOTE: DO NOT USE THIS TYPE DIRECTLY IN CLIENT CODE - ALL USAGES SHOULD USE FVector2f or float
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
|||
![]() |
FDeprecateSlateVector2D
(
FVector2f InValue |
Construction from another vector | |
![]() |
FDeprecateSlateVector2D
(
float InX, |
Explicit construction from single-precision component values |
Functions
Operators
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
Deprecated conversion to a double-precision vector for interoperability with legacy code | ||
![]() |
FDeprecateSlateVector2D & | operator=
(
const FVector2f& InValue |
Copy-assignment from another vector |
![]() |
FDeprecateSlateVector2D & | operator=
(
const FVector2d& InValue |
|
![]() |
FDeprecateSlateVector2D & | operator=
(
const FIntPoint& InValue |