C# Класс Box2DX.Common.Mat22

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
Col1 System.Vector2
Col2 System.Vector2

Открытые методы

Метод Описание
GetAngle ( ) : float

Extract the angle from this matrix (assumed to be a rotation matrix).

GetInverse ( ) : Mat22

Compute the inverse of this matrix, such that inv(A) * A = identity.

Mat22 ( System.Vector2 c1, System.Vector2 c2 ) : System

Construct this matrix using columns.

Mat22 ( float angle ) : System

Construct this matrix using an angle. This matrix becomes an orthonormal rotation matrix.

Mat22 ( float a11, float a12, float a21, float a22 ) : System

Construct this matrix using scalars.

Multiply ( System.Vector2 vector ) : System.Vector2
Set ( System.Vector2 c1, System.Vector2 c2 ) : void

Initialize this matrix using columns.

Set ( float angle ) : void

Initialize this matrix using an angle. This matrix becomes an orthonormal rotation matrix.

Solve ( System.Vector2 b ) : System.Vector2

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

operator ( ) : Mat22

Описание методов

GetAngle() публичный метод

Extract the angle from this matrix (assumed to be a rotation matrix).
public GetAngle ( ) : float
Результат float

GetInverse() публичный метод

Compute the inverse of this matrix, such that inv(A) * A = identity.
public GetInverse ( ) : Mat22
Результат Mat22

Mat22() публичный метод

Construct this matrix using columns.
public Mat22 ( System.Vector2 c1, System.Vector2 c2 ) : System
c1 System.Vector2
c2 System.Vector2
Результат System

Mat22() публичный метод

Construct this matrix using an angle. This matrix becomes an orthonormal rotation matrix.
public Mat22 ( float angle ) : System
angle float
Результат System

Mat22() публичный метод

Construct this matrix using scalars.
public Mat22 ( float a11, float a12, float a21, float a22 ) : System
a11 float
a12 float
a21 float
a22 float
Результат System

Multiply() публичный метод

public Multiply ( System.Vector2 vector ) : System.Vector2
vector System.Vector2
Результат System.Vector2

Set() публичный метод

Initialize this matrix using columns.
public Set ( System.Vector2 c1, System.Vector2 c2 ) : void
c1 System.Vector2
c2 System.Vector2
Результат void

Set() публичный метод

Initialize this matrix using an angle. This matrix becomes an orthonormal rotation matrix.
public Set ( float angle ) : void
angle float
Результат void

Solve() публичный метод

Solve A * x = b, where b is a column vector. This is more efficient than computing the inverse in one-shot cases.
public Solve ( System.Vector2 b ) : System.Vector2
b System.Vector2
Результат System.Vector2

operator() публичный статический метод

public static operator ( ) : Mat22
Результат Mat22

Описание свойств

Col1 публичное свойство

public Vector2,System Col1
Результат System.Vector2

Col2 публичное свойство

public Vector2,System Col2
Результат System.Vector2