Navigation
Unreal Engine C++ API Reference > Runtime > Core > Math
References
Module | Core |
Header | /Engine/Source/Runtime/Core/Public/Math/TransformCalculus2D.h |
Include | #include "Math/TransformCalculus2D.h" |
Syntax
template<typename T>
class TTransform2
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
Type | Name | Description | |
---|---|---|---|
![]() |
* | T | Inverts a transform. |
![]() |
Vector2Type | Trans |
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
TTransform2
(
const UE::Math::TVector2< VType >& Translation |
Initialize the transform using an identity matrix and a translation. | |
![]() |
TTransform2
(
T UniformScale, |
Initialize the transform using a uniform scale and a translation.Initialize the transform using an identity matrix and a translation. | |
![]() |
TTransform2
(
const TScale2< T >& Scale, |
Initialize the transform using a 2D scale and a translation.Initialize the transform using an identity matrix and a translation. | |
![]() |
TTransform2
(
const TShear2< T >& Shear, |
Initialize the transform using a 2D shear and a translation.Initialize the transform using an identity matrix and a translation. | |
![]() |
TTransform2
(
const TQuat2< T >& Rot, |
Initialize the transform using a 2D rotation and a translation.Initialize the transform using an identity matrix and a translation. | |
![]() |
TTransform2
(
const TMatrix2x2< T >& Transform, |
Initialize the transform using a general 2x2 transform and a translation.Initialize the transform using an identity matrix and a translation. |
Functions
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
TTransform2 | Concatenate
(
const TTransform2& RHS |
Concatenates two transforms. |
![]() ![]() |
UE::Math::TVector2< VType > | TransformPoint
(
const UE::Math::TVector2< VType >& Point |
2D transformation of a point. Transforms position, rotation, and scale. |
![]() ![]() |
UE::Math::TVector2< VType > | TransformVector
(
const UE::Math::TVector2< VType >& Vector |
2D transformation of a vector. Transforms rotation and scale. |
Typedefs
Name | Description |
---|---|
FReal | |
Matrix2Type | |
Vector2Type |