Ark Server API (ASA) - Wiki
|
#include <TransformCalculus2D.h>
Public Types | |
using | FReal = T |
using | Vector2Type = UE::Math::TVector2<T> |
Private Attributes | |
T | M [2][2] |
2x2 generalized matrix. As FMatrix, we assume row vectors, row major storage: [X Y] * [m00 m01] [m10 m11]
Definition at line 395 of file TransformCalculus2D.h.
Definition at line 400 of file TransformCalculus2D.h.
using TMatrix2x2< T >::Vector2Type = UE::Math::TVector2<T> |
Definition at line 401 of file TransformCalculus2D.h.
|
inline |
Ctor. initialize to an identity.
Definition at line 404 of file TransformCalculus2D.h.
|
inline |
Definition at line 410 of file TransformCalculus2D.h.
|
inlineexplicit |
Ctor. initialize from a scale.
Definition at line 418 of file TransformCalculus2D.h.
|
inlineexplicit |
Ctor. initialize from a scale.
Definition at line 425 of file TransformCalculus2D.h.
|
inlineexplicit |
Factory function. initialize from a 2D shear.
Definition at line 434 of file TransformCalculus2D.h.
|
inlineexplicit |
Ctor. initialize from a rotation.
Definition at line 443 of file TransformCalculus2D.h.
|
inline |
Concatenate 2 matrices: [A B] * [E F] == [AE+BG AF+BH] [C D] [G H] [CE+DG CF+DH]
Definition at line 476 of file TransformCalculus2D.h.
|
inline |
Definition at line 531 of file TransformCalculus2D.h.
Definition at line 525 of file TransformCalculus2D.h.
Definition at line 519 of file TransformCalculus2D.h.
|
inline |
Gets the rotation angle of the matrix.
Definition at line 561 of file TransformCalculus2D.h.
Gets the scale from the matrix.
Definition at line 554 of file TransformCalculus2D.h.
Extracts the squared scale from the matrix (avoids sqrt).
Definition at line 546 of file TransformCalculus2D.h.
|
inline |
Invert the transform.
Definition at line 489 of file TransformCalculus2D.h.
|
inline |
Definition at line 538 of file TransformCalculus2D.h.
|
inline |
Determines if the matrix is identity or not. Uses exact float comparison, so rounding error is not considered.
Definition at line 569 of file TransformCalculus2D.h.
|
inline |
Definition at line 575 of file TransformCalculus2D.h.
|
inline |
Inequality.
Definition at line 514 of file TransformCalculus2D.h.
|
inline |
Equality.
Definition at line 500 of file TransformCalculus2D.h.
|
inline |
Transform a 2D point [X Y] * [m00 m01] [m10 m11]
Definition at line 457 of file TransformCalculus2D.h.
|
inline |
Vector transformation is equivalent to point transformation as our matrix is not homogeneous.
Definition at line 467 of file TransformCalculus2D.h.
|
private |
Definition at line 585 of file TransformCalculus2D.h.