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
Mat22(float, float, float, float)
Construct this matrix using scalars.
public Mat22(float a11, float a12, float a21, float a22)
Parameters
Fields
Ex
The ey
public Vector2 Ex
Field Value
Ey
The ey
public Vector2 Ey
Field Value
Properties
Inverse
Gets the value of the inverse
public Mat22 Inverse { get; }
Property Value
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
Set(Vector2, Vector2)
Initialize this matrix using columns.
public void Set(Vector2 c1, Vector2 c2)
Parameters
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.