C# Class Box2DX.Common.Mat22

ファイルを表示 Open project: KrugerHeavyIndustries/box2d-unity Class Usage Examples

Public Properties

Property Type Description
Col1 System.Vector2
Col2 System.Vector2

Public Methods

Method 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 method

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

GetInverse() public method

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

Mat22() public method

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

Mat22() public method

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

Mat22() public method

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

Multiply() public method

public Multiply ( System.Vector2 vector ) : System.Vector2
vector System.Vector2
return System.Vector2

Set() public method

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

Set() public method

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

Solve() public method

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
return System.Vector2

operator() public static method

public static operator ( ) : Mat22
return Mat22

Property Details

Col1 public_oe property

public Vector2,System Col1
return System.Vector2

Col2 public_oe property

public Vector2,System Col2
return System.Vector2