![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <TransformCalculus2D.h>
Public Types | |
| using | FReal = T |
| using | Vector2Type = UE::Math::TVector2< T > |
2x2 generalized matrix. As FMatrix, we assume row vectors, row major storage: [X Y] * [m00 m01] [m10 m11]
| using TMatrix2x2< T >::FReal = T |
| using TMatrix2x2< T >::Vector2Type = UE::Math::TVector2<T> |
|
inline |
Ctor. initialize to an identity.
|
inline |
|
inlineexplicit |
Ctor. initialize from a scale.
|
inlineexplicit |
Ctor. initialize from a scale.
|
inlineexplicit |
Factory function. initialize from a 2D shear.
|
inlineexplicit |
Ctor. initialize from a rotation.
|
inline |
Concatenate 2 matrices: [A B] * [E F] == [AE+BG AF+BH] [C D] [G H] [CE+DG CF+DH]
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Gets the rotation angle of the matrix.
|
inline |
Gets the scale from the matrix.
|
inline |
Extracts the squared scale from the matrix (avoids sqrt).
|
inline |
Invert the transform.
|
inline |
|
inline |
Determines if the matrix is identity or not. Uses exact float comparison, so rounding error is not considered.
|
inline |
|
inline |
Inequality.
|
inline |
Equality.
|
inline |
Transform a 2D point [X Y] * [m00 m01] [m10 m11]
|
inline |
Vector transformation is equivalent to point transformation as our matrix is not homogeneous.