engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 所有成员列表
FSlateLayoutTransform类 参考

Represents a 2D transformation in the following order: scale then translate. 更多...

#include <SlateLayoutTransform.h>

Public 成员函数

FSlateLayoutTransform Concatenate (const FSlateLayoutTransform &RHS) const
 This works by transforming the origin through LHS then RHS. 更多...
 
 FSlateLayoutTransform (const FVector2D &InTranslation)
 Ctor from a 2D translation followed by a scale. 更多...
 
 FSlateLayoutTransform (float InScale=1.0f, const FVector2D &InTranslation=FVector2D(ForceInit))
 Ctor from a scale followed by translate. 更多...
 
float GetScale () const
 Access to the scale.
 
const FVector2D & GetTranslation () const
 Access to the 2D translation
 
FSlateLayoutTransform Inverse () const
 Invert the transform/scale.
 
bool operator!= (const FSlateLayoutTransform &Other) const
 Inequality.
 
bool operator== (const FSlateLayoutTransform &Other) const
 Equality.
 
FMatrix ToMatrix () const
 Support for converting to an FMatrix.
 
FVector2D TransformPoint (const FVector2D &Point) const
 2D transform support.
 
FVector2D TransformVector (const FVector2D &Vector) const
 2D transform support.
 

详细描述

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 ]

构造及析构函数说明

◆ FSlateLayoutTransform() [1/2]

FSlateLayoutTransform::FSlateLayoutTransform ( float  InScale = 1.0f,
const FVector2D &  InTranslation = FVector2D(ForceInit) 
)
inlineexplicit

Ctor from a scale followed by translate.

Shortcut to Concatenate(InScale, InTranslation).

◆ FSlateLayoutTransform() [2/2]

FSlateLayoutTransform::FSlateLayoutTransform ( const FVector2D &  InTranslation)
inlineexplicit

Ctor from a 2D translation followed by a scale.

Shortcut to Concatenate(InTranslation, InScale). While this is the opposite order we internally store them, we can represent this correctly.

成员函数说明

◆ Concatenate()

FSlateLayoutTransform FSlateLayoutTransform::Concatenate ( const FSlateLayoutTransform &  RHS) const
inline

This works by transforming the origin through LHS then RHS.

In matrix form, looks like this: [ Sa 0 0 ] [ Sb 0 0 ] [ 0 Sa 0 ] * [ 0 Sb 0 ] [ Tax Tay 1 ] [ Tbx Tby 1 ]


该类的文档由以下文件生成: