Table of Contents

Struct Mat22

Namespace
Alis.Core.Physic.Common
Assembly
Alis.dll

A 2-by-2 matrix. Stored in column-major order.

public struct Mat22

Inherited Members

Constructors

Mat22(Vector2, Vector2)

Construct this matrix using columns.

public Mat22(Vector2 c1, Vector2 c2)

Parameters

c1 Vector2

The c1.

c2 Vector2

The c2.

Mat22(float, float, float, float)

Construct this matrix using scalars.

public Mat22(float a11, float a12, float a21, float a22)

Parameters

a11 float

The a11.

a12 float

The a12.

a21 float

The a21.

a22 float

The a22.

Fields

Ex

The ey

public Vector2 Ex

Field Value

Vector2

Ey

The ey

public Vector2 Ey

Field Value

Vector2

Properties

Inverse

Gets the value of the inverse

public Mat22 Inverse { get; }

Property Value

Mat22

Methods

Add(ref Mat22, ref Mat22, out Mat22)

Adds the a

public static void Add(ref Mat22 a, ref Mat22 b, out Mat22 r)

Parameters

a Mat22

The

b Mat22

The

r Mat22

The

Set(Vector2, Vector2)

Initialize this matrix using columns.

public void Set(Vector2 c1, Vector2 c2)

Parameters

c1 Vector2

The c1.

c2 Vector2

The c2.

SetIdentity()

Set this to the identity matrix.

public void SetIdentity()

SetZero()

Set this matrix to all zeros.

public void SetZero()

Solve(Vector2)

Solve A * x = b, where b is a column vector. This is more efficient than computing the inverse in one-shot cases.

public Vector2 Solve(Vector2 b)

Parameters

b Vector2

The b.

Returns

Vector2