Navigation
API > API/Runtime > API/Runtime/GeometryCore
| Name | TMatrix2 |
| Type | struct |
| Header File | /Engine/Source/Runtime/GeometryCore/Public/MatrixTypes.h |
| Include Path | #include "MatrixTypes.h" |
Syntax
template<typename RealType>
struct TMatrix2
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| MatrixTypes.h | |||
TMatrix2 () |
MatrixTypes.h | ||
TMatrix2
(
RealType ConstantValue |
MatrixTypes.h | ||
TMatrix2
(
RealType Diag0, |
MatrixTypes.h | ||
| Construct outer-product of U*transpose(V) of U and V result is that Mij = u_i * v_j | MatrixTypes.h | ||
TMatrix2
(
RealType M00, |
MatrixTypes.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Row0 | TVector2< RealType > | MatrixTypes.h | ||
| Row1 | TVector2< RealType > | MatrixTypes.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
RealType Determinant() |
MatrixTypes.h | ||
bool EpsilonEqual
(
const TMatrix2< RealType >& Mat2, |
MatrixTypes.h | ||
RealType GetAngleRad() |
Assumes we have a rotation matrix (uniform scale ok) | MatrixTypes.h | |
RealType InnerProduct
(
const TMatrix2< RealType >& Mat2 |
MatrixTypes.h | ||
TMatrix2< RealType > Inverse() |
MatrixTypes.h | ||
RealType Trace() |
MatrixTypes.h | ||
TMatrix2< RealType > Transpose() |
MatrixTypes.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| Create a matrix that scales along the specified axis | MatrixTypes.h | ||
static TMatrix2< RealType > Identity() |
MatrixTypes.h | ||
static TMatrix2< RealType > RotationDeg
(
RealType AngleDeg |
MatrixTypes.h | ||
static TMatrix2< RealType > RotationRad
(
RealType AngleRad |
MatrixTypes.h | ||
static TMatrix2< RealType > Zero() |
MatrixTypes.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| MatrixTypes.h | |||
RealType operator()
(
int Row, |
MatrixTypes.h | ||
| MatrixTypes.h | |||
| MatrixTypes.h | |||
| MatrixTypes.h | |||
TMatrix2< RealType > & operator*=
(
const RealType& Scalar |
MatrixTypes.h | ||
| MatrixTypes.h | |||
| MatrixTypes.h |