Skip to main content

Matrix2x2

Public Functions

Name
Matrix2x2()
Matrix2x2(float m00, float m01, float m10, float m11)
Matrix2x2(Matrix2x2 m)
Matrix2x2(float m00, float m11)
voidLoadIdentity()
voidSetValue(float m00, float m01, float m10, float m11)
voidSetValue(float m00, float m11)
voidSetValue(Matrix2x2 m)
voidSetValue(float value)
voidNormalize()
floatDeterminant()
Matrix2x2Transpose()
Matrix2x2Inverse()
Matrix2x2Cofactor()
floatFrobeniusInnerProduct(Matrix2x2 m)
voidSVD(ref Matrix2x2 w, ref Matrix2x2 e, ref Matrix2x2 v)
Singular Value Decomposition
voidDiagProduct(Vector2 v)
voidDiagProductInv(Vector2 v)
voidDiagDifference(float c)
voidDiagDifference(Vector2 v)
voidDiagSum(float c)
voidDiagSum(Vector2 v)
override stringToString()
Matrix2x2operator+(Matrix2x2 l, float r)
Matrix2x2operator+(float l, Matrix2x2 r)
Matrix2x2operator-(Matrix2x2 l, float r)
Matrix2x2operator*(Matrix2x2 l, float r)
Matrix2x2operator*(float l, Matrix2x2 r)
Matrix2x2operator/(Matrix2x2 l, float r)
Matrix2x2operator+(Matrix2x2 l, Matrix2x2 r)
Matrix2x2operator-(Matrix2x2 l, Matrix2x2 r)
Matrix2x2operator*(Matrix2x2 l, Matrix2x2 r)
Vector2operator*(Matrix2x2 l, Vector2 r)

Public Properties

Name
floatthis[int row, int column]
floatthis[int index]

Public Attributes

Name
floatm00
floatMATRIX_EPSILON

Public Functions Documentation

function Matrix2x2

Matrix2x2()

function Matrix2x2

Matrix2x2(
float m00,
float m01,
float m10,
float m11
)

function Matrix2x2

Matrix2x2(
Matrix2x2 m
)

function Matrix2x2

Matrix2x2(
float m00,
float m11
)

function LoadIdentity

void LoadIdentity()

function SetValue

void SetValue(
float m00,
float m01,
float m10,
float m11
)

function SetValue

void SetValue(
float m00,
float m11
)

function SetValue

void SetValue(
Matrix2x2 m
)

function SetValue

void SetValue(
float value
)

function Normalize

void Normalize()

function Determinant

float Determinant()

function Transpose

Matrix2x2 Transpose()

function Inverse

Matrix2x2 Inverse()

function Cofactor

Matrix2x2 Cofactor()

function FrobeniusInnerProduct

float FrobeniusInnerProduct(
Matrix2x2 m
)

function SVD

void SVD(
ref Matrix2x2 w,
ref Matrix2x2 e,
ref Matrix2x2 v
)

Singular Value Decomposition

Parameters:

  • w Returns rotation matrix
  • e Returns sigma matrix
  • v Returns (not transposed)

function DiagProduct

void DiagProduct(
Vector2 v
)

function DiagProductInv

void DiagProductInv(
Vector2 v
)

function DiagDifference

void DiagDifference(
float c
)

function DiagDifference

void DiagDifference(
Vector2 v
)

function DiagSum

void DiagSum(
float c
)

function DiagSum

void DiagSum(
Vector2 v
)

function ToString

override string ToString()

function operator+

static Matrix2x2 operator+(
Matrix2x2 l,
float r
)

function operator+

static Matrix2x2 operator+(
float l,
Matrix2x2 r
)

function operator-

static Matrix2x2 operator-(
Matrix2x2 l,
float r
)

function operator*

static Matrix2x2 operator*(
Matrix2x2 l,
float r
)

function operator*

static Matrix2x2 operator*(
float l,
Matrix2x2 r
)

function operator/

static Matrix2x2 operator/(
Matrix2x2 l,
float r
)

function operator+

static Matrix2x2 operator+(
Matrix2x2 l,
Matrix2x2 r
)

function operator-

static Matrix2x2 operator-(
Matrix2x2 l,
Matrix2x2 r
)

function operator*

static Matrix2x2 operator*(
Matrix2x2 l,
Matrix2x2 r
)

function operator*

static Vector2 operator*(
Matrix2x2 l,
Vector2 r
)

Public Property Documentation

property this[int row, int column]

float this[int row, int column];

property this[int index]

float this[int index];

Public Attributes Documentation

variable m00

float m00;

variable MATRIX_EPSILON

static float MATRIX_EPSILON = 1e-6f;