Navigation
API > API/Runtime > API/Runtime/SlateCore
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
| Name | FDeprecateSlateVector2D |
| Type | struct |
| Header File | /Engine/Source/Runtime/SlateCore/Public/Types/SlateVector2.h |
| Include Path | #include "Types/SlateVector2.h" |
Syntax
USTRUCT (BlueprintInternalUseOnly, DisplayName="Vector2D",
Meta=(HiddenByDefault, ShortTooltip="Vector2D (single-precision)", ToolTip="Vector2D (single-precision)", ScriptDefaultMake, ScriptDefaultBreak, HasNativeMake="/Script/Engine.KismetMathLibrary.MakeVector2D", HasNativeBreak="/Script/Engine.KismetMathLibrary.BreakVector2D"))
struct FDeprecateSlateVector2D : public UE::Math::TVector2< float >
Inheritance Hierarchy
- TVector2 → FDeprecateSlateVector2D
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FDeprecateSlateVector2D
(
FVector2f InValue |
Construction from another vector | Types/SlateVector2.h | |
FDeprecateSlateVector2D
(
float InX, |
Explicit construction from single-precision component values | Types/SlateVector2.h | |
| Types/SlateVector2.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FDeprecateSlateVector2D ClampAxes
(
float MinAxisVal, |
Types/SlateVector2.h | ||
FDeprecateSlateVector2D ClampAxes
(
double MinAxisVal, |
Types/SlateVector2.h | ||
bool ComponentwiseAllGreaterOrEqual
(
const UE::Slate::FDeprecateVector2DParameter& Other |
Types/SlateVector2.h | ||
bool ComponentwiseAllGreaterThan
(
const UE::Slate::FDeprecateVector2DParameter& Other |
Types/SlateVector2.h | ||
bool ComponentwiseAllLessOrEqual
(
const UE::Slate::FDeprecateVector2DParameter& Other |
Types/SlateVector2.h | ||
bool ComponentwiseAllLessThan
(
const UE::Slate::FDeprecateVector2DParameter& Other |
Types/SlateVector2.h | ||
bool Equals
(
const UE::Slate::FDeprecateVector2DParameter& V, |
Types/SlateVector2.h | ||
FDeprecateSlateVector2D GetAbs() |
Types/SlateVector2.h | ||
FDeprecateSlateVector2D GetRotated
(
double AngleDeg |
Types/SlateVector2.h | ||
FDeprecateSlateVector2D GetRotated
(
float AngleDeg |
Types/SlateVector2.h | ||
FDeprecateSlateVector2D GetSafeNormal
(
double Tolerance |
Types/SlateVector2.h | ||
FDeprecateSlateVector2D GetSafeNormal
(
float Tolerance |
Types/SlateVector2.h | ||
FDeprecateSlateVector2D GetSignVector() |
Types/SlateVector2.h | ||
FDeprecateSlateVector2D RoundToVector() |
Get this vector as a vector where each component has been rounded to the nearest int. | Types/SlateVector2.h | |
bool Serialize
(
FStructuredArchive::FSlot Slot |
Types/SlateVector2.h | ||
bool SerializeFromMismatchedTag
(
const FPropertyTag& Tag, |
Types/SlateVector2.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
operator FVector2d() |
Deprecated conversion to a double-precision vector for interoperability with legacy code | Types/SlateVector2.h | |
FDeprecateSlateVector2D & operator=
(
const FVector2f& InValue |
Copy-assignment from another vector | Types/SlateVector2.h | |
FDeprecateSlateVector2D & operator=
(
const FVector2d& InValue |
Types/SlateVector2.h | ||
FDeprecateSlateVector2D & operator=
(
const FIntPoint& InValue |
Types/SlateVector2.h |