FTransform2D

Support for generalized 2D affine transforms.

Windows
MacOS
Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Math/TransformCalculus2D.h

Include

#include "Math/TransformCalculus2D.h"

Syntax

class FTransform2D

Remarks

Support for generalized 2D affine transforms. Implemented as a 2x2 transform followed by translation. In matrix form: [A B 0] [C D 0] [X Y 1]

Variables

Name Description

Public variable

*

 

T

Inverts a transform.

Public variable

FVector2D

 

Trans

Constructors

Name Description

Public function

FTransform2D

(
    const FVector2D& Translation
)

Initialize the transform using an identity matrix and a translation.

Public function

FTransform2D

(
    float UniformScale,
    const FVector2D& Translation
)

Initialize the transform using a uniform scale and a translation.

Public function

FTransform2D

(
    const FScale2D& Scale,
    const FVector2D& Translation
)

Initialize the transform using a 2D scale and a translation.

Public function

FTransform2D

(
    const FShear2D& Shear,
    const FVector2D& Translation
)

Initialize the transform using a 2D shear and a translation.

Public function

FTransform2D

(
    const FQuat2D& Rot,
    const FVector2D& Translation
)

Initialize the transform using a 2D rotation and a translation.

Public function

FTransform2D

(
    const FMatrix2x2& Transform,
    const FVector2D& Translation
)

Initialize the transform using a general 2x2 transform and a translation.

Functions

Name Description

Public function Const

FTransform2D

 

Concatenate

(
    const FTransform2D& RHS
)

Concatenates two transforms.

Public function Const

FVector2D

 

TransformPoint

(
    const FVector2D& Point
)

2D transformation of a point. Transforms position, rotation, and scale.

Public function Const

FVector2D

 

TransformVector

(
    const FVector2D& Vector
)

2D transformation of a vector. Transforms rotation and scale.

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