C# Class Box2DX.Common.Mat33

A 3-by-3 matrix. Stored in column-major order.
Mostra file Open project: KrugerHeavyIndustries/box2d-unity Class Usage Examples

Public Properties

Property Type Description
Col1 System.Vector3
Col2 System.Vector3
Col3 System.Vector3

Public Methods

Method Description
Mat33 ( System.Vector3 c1, System.Vector3 c2, System.Vector3 c3 ) : System

Construct this matrix using columns.

SetZero ( ) : void

Set this matrix to all zeros.

Solve22 ( 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. Solve only the upper 2-by-2 matrix equation.

Solve33 ( System.Vector3 b ) : System.Vector3

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

Method Details

Mat33() public method

Construct this matrix using columns.
public Mat33 ( System.Vector3 c1, System.Vector3 c2, System.Vector3 c3 ) : System
c1 System.Vector3
c2 System.Vector3
c3 System.Vector3
return System

SetZero() public method

Set this matrix to all zeros.
public SetZero ( ) : void
return void

Solve22() public method

Solve A * x = b, where b is a column vector. This is more efficient than computing the inverse in one-shot cases. Solve only the upper 2-by-2 matrix equation.
public Solve22 ( System.Vector2 b ) : System.Vector2
b System.Vector2
return System.Vector2

Solve33() 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 Solve33 ( System.Vector3 b ) : System.Vector3
b System.Vector3
return System.Vector3

Property Details

Col1 public_oe property

public Vector3,System Col1
return System.Vector3

Col2 public_oe property

public Vector3,System Col2
return System.Vector3

Col3 public_oe property

public Vector3,System Col3
return System.Vector3