FSlateLayoutTransform

Copyright Epic Games, Inc. All Rights Reserved.

Windows
MacOS
Linux

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

Name Description

Public function

FSlateLayoutTransform

(
    const FVector2D& InTranslation
)

Ctor from a 2D translation followed by a scale.

Public function

FSlateLayoutTransform

(
    float InScale,
    const FVector2D& InTranslation
)

Ctor from a scale followed by translate.

Functions

Name Description

Public function Const

FSlateLayout...

 

Concatenate

(
    const FSlateLayoutTransform& RHS
)

This works by transforming the origin through LHS then RHS.

Public function Const

float

 

GetScale()

Access to the scale.

Public function Const

const FVecto...

 

GetTranslation()

Access to the 2D translation

Public function Const

FSlateLayout...

 

Inverse()

Invert the transform/scale.

Public function Const

FMatrix

 

ToMatrix()

Support for converting to an FMatrix.

Public function Const

FVector2D

 

TransformPoint

(
    const FVector2D& Point
)

2D transform support.

Public function Const

FVector2D

 

TransformVector

(
    const FVector2D& Vector
)

2D transform support.

Operators

Name Description

Public function Const

bool

 

operator!=

(
    const FSlateLayoutTransform& Other
)

Inequality.

Public function Const

bool

 

operator==

(
    const FSlateLayoutTransform& Other
)

Equality.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss