Navigation
API > API/Runtime > API/Runtime/SlateCore > API/Runtime/SlateCore/Rendering
References
| Module | SlateCore |
| Header | /Engine/Source/Runtime/SlateCore/Public/Rendering/SlateLayoutTransform.h |
| Include | #include "Rendering/SlateLayoutTransform.h" |
Syntax
class FSlateLayoutTransform
Remarks
Represents a 2D transformation in the following order: scale then translate. Used by FGeometry for it's layout transformations.
Matrix form looks like: [Vx Vy 1] * [ S 0 0 ] [ 0 S 0 ] [ Tx Ty 1 ]
Constructors
| Type | Name | Description | |
|---|---|---|---|
FSlateLayoutTransform
(
float InScale |
|||
FSlateLayoutTransform
(
const UE::Slate::FDeprecateVector2DParameter& InTranslation |
|||
FSlateLayoutTransform
(
float InScale, |
Ctor from a scale followed by translate. Shortcut to Concatenate(InScale, InTranslation). |
Functions
| Type | Name | Description | |
|---|---|---|---|
| FSlateLayoutTransform | Concatenate
(
const FSlateLayoutTransform& RHS |
This works by transforming the origin through LHS then RHS. | |
| float | GetScale () |
Access to the scale. | |
| UE::Slate::FDeprecateVector2DResult | Access to the 2D translation | ||
| FSlateLayoutTransform | Inverse () |
Invert the transform/scale. | |
| FMatrix | ToMatrix () |
Support for converting to an FMatrix. | |
| UE::Slate::FDeprecateVector2DResult | TransformPoint
(
const UE::Slate::FDeprecateVector2DParameter& Point |
||
| UE::Slate::FDeprecateVector2DResult | TransformVector
(
const UE::Slate::FDeprecateVector2DParameter& Vector |
Operators
| Type | Name | Description | |
|---|---|---|---|
| bool | operator!=
(
const FSlateLayoutTransform& Other |
Inequality. | |
| bool | operator==
(
const FSlateLayoutTransform& Other |
Equality. |