Ark Server API (ASA) - Wiki
|
#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) |
Private Attributes | |
Vector2Type | Shear |
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.
Definition at line 193 of file TransformCalculus2D.h.
Definition at line 198 of file TransformCalculus2D.h.
Definition at line 199 of file TransformCalculus2D.h.
Ctor. initialize to an identity.
Definition at line 202 of file TransformCalculus2D.h.
Ctor. initialize from a set of shears parallel to the X and Y axis, respectively.
Definition at line 204 of file TransformCalculus2D.h.
Ctor. initialize from a 2D vector representing a set of shears parallel to the X and Y axis, respectively.
Definition at line 207 of file TransformCalculus2D.h.
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]
Definition at line 595 of file TransformCalculus2D.h.
|
inlinestatic |
Generates a shear structure based on angles instead of slope.
InShearAngles | The angles of shear. |
Definition at line 215 of file TransformCalculus2D.h.
Access to the underlying FVector2D that stores the scale.
Definition at line 273 of file TransformCalculus2D.h.
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]
Definition at line 607 of file TransformCalculus2D.h.
Inequality.
Definition at line 267 of file TransformCalculus2D.h.
Equality.
Definition at line 261 of file TransformCalculus2D.h.
|
inline |
Transform 2D Point [X Y] * [1 YY] == [X+Y*XX Y+X*YY] [XX 1]
Definition at line 232 of file TransformCalculus2D.h.
|
inline |
Transform 2D Vector
Definition at line 238 of file TransformCalculus2D.h.
|
private |
Underlying storage of the 2D shear.
Definition at line 277 of file TransformCalculus2D.h.