Navigation
API > API/Runtime > API/Runtime/Core > API/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]
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. | ||
TTransform2
(
const TScale2< T >& Scale, |
Initialize the transform using a 2D scale and a translation. | ||
TTransform2
(
const TShear2< T >& Shear, |
Initialize the transform using a 2D shear and a translation. | ||
TTransform2
(
const TQuat2< T >& Rot, |
Initialize the transform using a 2D rotation and a translation. | ||
TTransform2
(
const TMatrix2x2< T >& Transform, |
Initialize the transform using a general 2x2 transform and a translation. |
Functions
| Type | Name | Description | |
|---|---|---|---|
| TTransform2 | Concatenate
(
const TTransform2& RHS |
Concatenates two transforms. | |
| bool | ContainsNaN () |
Utility to check if there are any non-finite values (NaN or Inf) in this transform. | |
| const Matrix2Type & | GetMatrix () |
Access to the 2x2 transform | |
| const FVector2D | Const Vector2Type GetTranslation() const { return Vector2Type(Trans); } | ||
| TTransform2 | Inverse () |
Inverts a transform. | |
| bool | IsIdentity () |
Specialized function to determine if a transform is precisely the identity transform. | |
| void | SetTranslation
(
const UE::Math::TVector2< VType >& InTrans |
||
| UE::Math::TMatrix< T > | To3DMatrix () |
Converts this affine 2D Transform into an affine 3D transform. | |
| 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. |
Operators
| Type | Name | Description | |
|---|---|---|---|
| bool | operator!=
(
const TTransform2& Other |
Inequality. | |
| bool | operator==
(
const TTransform2& Other |
Equality. |
Typedefs
| Name | Description |
|---|---|
| FReal | |
| Matrix2Type | |
| Vector2Type |