C# Class Box2DX.Common.Mat22

Afficher le fichier Open project: KrugerHeavyIndustries/box2d-unity Class Usage Examples

Méthodes publiques

Свойство Type Description
Col1 System.Vector2
Col2 System.Vector2

Méthodes publiques

Méthode Description
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

Method Details

GetAngle() public méthode

Extract the angle from this matrix (assumed to be a rotation matrix).
public GetAngle ( ) : float
Résultat float

GetInverse() public méthode

Compute the inverse of this matrix, such that inv(A) * A = identity.
public GetInverse ( ) : Mat22
Résultat Mat22

Mat22() public méthode

Construct this matrix using columns.
public Mat22 ( System.Vector2 c1, System.Vector2 c2 ) : System
c1 System.Vector2
c2 System.Vector2
Résultat System

Mat22() public méthode

Construct this matrix using an angle. This matrix becomes an orthonormal rotation matrix.
public Mat22 ( float angle ) : System
angle float
Résultat System

Mat22() public méthode

Construct this matrix using scalars.
public Mat22 ( float a11, float a12, float a21, float a22 ) : System
a11 float
a12 float
a21 float
a22 float
Résultat System

Multiply() public méthode

public Multiply ( System.Vector2 vector ) : System.Vector2
vector System.Vector2
Résultat System.Vector2

Set() public méthode

Initialize this matrix using columns.
public Set ( System.Vector2 c1, System.Vector2 c2 ) : void
c1 System.Vector2
c2 System.Vector2
Résultat void

Set() public méthode

Initialize this matrix using an angle. This matrix becomes an orthonormal rotation matrix.
public Set ( float angle ) : void
angle float
Résultat void

Solve() public méthode

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
Résultat System.Vector2

operator() public static méthode

public static operator ( ) : Mat22
Résultat Mat22

Property Details

Col1 public_oe property

public Vector2,System Col1
Résultat System.Vector2

Col2 public_oe property

public Vector2,System Col2
Résultat System.Vector2