Property | Type | Description | |
---|---|---|---|
Col1 | System.Vector2 | ||
Col2 | System.Vector2 |
Method | Description | |
---|---|---|
GetAngle ( ) : float |
Extract the angle from this matrix (assumed to be a rotation matrix).
|
|
GetInverse ( ) : |
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 ( ) : |
public Mat22 ( System.Vector2 c1, System.Vector2 c2 ) : System | ||
c1 | System.Vector2 | |
c2 | System.Vector2 | |
return | System |
public Mat22 ( float a11, float a12, float a21, float a22 ) : System | ||
a11 | float | |
a12 | float | |
a21 | float | |
a22 | float | |
return | System |
public Multiply ( System.Vector2 vector ) : System.Vector2 | ||
vector | System.Vector2 | |
return | System.Vector2 |
public Set ( System.Vector2 c1, System.Vector2 c2 ) : void | ||
c1 | System.Vector2 | |
c2 | System.Vector2 | |
return | void |
public Solve ( System.Vector2 b ) : System.Vector2 | ||
b | System.Vector2 | |
return | System.Vector2 |