2x2 generalized matrix. 更多...
#include <TransformCalculus2D.h>
Public 成员函数 | |
| FMatrix2x2 | Concatenate (const FMatrix2x2 &RHS) const |
| Concatenate 2 matrices: [A B] * [E F] == [AE+BG AF+BH] [C D] [G H] [CE+DG CF+DH] | |
| FMatrix2x2 () | |
| Ctor. 更多... | |
| FMatrix2x2 (const FQuat2D &Rotation) | |
| Ctor. 更多... | |
| FMatrix2x2 (const FScale2D &Scale) | |
| Ctor. 更多... | |
| FMatrix2x2 (const FShear2D &Shear) | |
| Factory function. 更多... | |
| FMatrix2x2 (float UniformScale) | |
| Ctor. 更多... | |
| float | GetRotationAngle () const |
| Gets the rotation angle of the matrix. | |
| FScale2D | GetScale () const |
| Gets the scale from the matrix. | |
| FScale2D | GetScaleSquared () const |
| Extracts the squared scale from the matrix (avoids sqrt). | |
| FMatrix2x2 | Inverse () const |
| Invert the transform. | |
| bool | IsIdentity () const |
| Determines if the matrix is identity or not. 更多... | |
| bool | operator!= (const FMatrix2x2 &Other) const |
| Inequality. | |
| bool | operator== (const FMatrix2x2 &RHS) const |
| Equality. | |
| FVector2D | TransformPoint (const FVector2D &Point) const |
| Transform a 2D point [X Y] * [m00 m01] [m10 m11] | |
| FVector2D | TransformVector (const FVector2D &Vector) const |
| Vector transformation is equivalent to point transformation as our matrix is not homogeneous. | |
2x2 generalized matrix.
As FMatrix, we assume row vectors, row major storage: [X Y] * [m00 m01] [m10 m11]
|
inline |
Ctor.
initialize to an identity.
|
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 |
Determines if the matrix is identity or not.
Uses exact float comparison, so rounding error is not considered.