![]() |
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 > |
Public Member Functions | |
| TShear2 () | |
| TShear2 (T ShearX, T ShearY) | |
| template<typename VType > | |
| TShear2 (const UE::Math::TVector2< VType > &InShear) | |
| template<typename ArgType > | |
| UE::Math::TVector2< ArgType > | TransformPoint (const UE::Math::TVector2< ArgType > &Point) const |
| template<typename ArgType > | |
| UE::Math::TVector2< ArgType > | TransformVector (const UE::Math::TVector2< ArgType > &Vector) const |
| TMatrix2x2< T > | Concatenate (const TShear2 &RHS) const |
| TMatrix2x2< T > | Inverse () const |
| bool | operator== (const TShear2 &Other) const |
| bool | operator!= (const TShear2 &Other) const |
| const Vector2Type & | GetVector () const |
Static Public Member Functions | |
| template<typename VType > | |
| static TShear2 | FromShearAngles (const UE::Math::TVector2< VType > &InShearAngles) |
Represents a 2D shear: [1 YY] [XX 1] XX represents a shear parallel to the X axis. YY represents a shear parallel to the Y axis.
| using TShear2< T >::Vector2Type = UE::Math::TVector2<T> |
Ctor. initialize from a set of shears parallel to the X and Y axis, respectively.
|
inlineexplicit |
Ctor. initialize from a 2D vector representing a set of shears parallel to the X and Y axis, respectively.
|
inline |
Concatenate two shears. The result is NOT a shear, but must be represented by a generalized 2x2 transform. Defer the implementation until we can declare a 2x2 matrix. [1 YYA] * [1 YYB] == [1+YYA*XXB YYB*YYA] [XXA 1] [XXB 1] [XXA+XXB XXA*XXB+1]
|
inlinestatic |
Generates a shear structure based on angles instead of slope.
| InShearAngles | The angles of shear. |
|
inline |
Access to the underlying FVector2D that stores the scale.
|
inline |
Invert the shear. The result is NOT a shear, but must be represented by a generalized 2x2 transform. Defer the implementation until we can declare a 2x2 matrix. [1 YY]^-1 == 1/(1-YY*XX) * [1 -YY] [XX 1] [-XX 1]
|
inline |
Inequality.
Equality.
|
inline |
Transform 2D Point [X Y] * [1 YY] == [X+Y*XX Y+X*YY] [XX 1]
|
inline |
Transform 2D Vector