engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 所有成员列表
FMatrix2x2类 参考

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]

构造及析构函数说明

◆ FMatrix2x2() [1/5]

FMatrix2x2::FMatrix2x2 ( )
inline

Ctor.

initialize to an identity.

◆ FMatrix2x2() [2/5]

FMatrix2x2::FMatrix2x2 ( float  UniformScale)
inlineexplicit

Ctor.

initialize from a scale.

◆ FMatrix2x2() [3/5]

FMatrix2x2::FMatrix2x2 ( const FScale2D &  Scale)
inlineexplicit

Ctor.

initialize from a scale.

◆ FMatrix2x2() [4/5]

FMatrix2x2::FMatrix2x2 ( const FShear2D &  Shear)
inlineexplicit

Factory function.

initialize from a 2D shear.

◆ FMatrix2x2() [5/5]

FMatrix2x2::FMatrix2x2 ( const FQuat2D &  Rotation)
inlineexplicit

Ctor.

initialize from a rotation.

成员函数说明

◆ IsIdentity()

bool FMatrix2x2::IsIdentity ( ) const
inline

Determines if the matrix is identity or not.

Uses exact float comparison, so rounding error is not considered.


该类的文档由以下文件生成: