The Matrix2x2 type exposes the following members.
Constructors
Name | Description | |
---|---|---|
Matrix2x2(Matrix2x2) |
Copy constructor for the 2x2 matrix struct
| |
Matrix2x2(Matrix4x4) |
Copies the significant elements m11, m12, m21, m22 from the 4x4 matrix
| |
Matrix2x2(Double, Double, Double, Double) |
Contructor for a 2x2 matrix from 4 float values, order is row major
|
Methods
Name | Description | |
---|---|---|
Decompose |
Superfast 2d decomposition
| |
Equals(Object) | (Overrides ValueType..::..Equals(Object).) | |
Equals(Matrix2x2) | ||
Finalize | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | (Overrides ValueType..::..GetHashCode()()()().) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString | Returns the fully qualified type name of this instance. (Inherited from ValueType.) | |
Transpose |
Transpose this 2x2 matrix
|
Operators
Name | Description | |
---|---|---|
Addition |
matrix + matrix, adds the values of two matrices component wise
| |
Division |
matrix / value, divides all matrix components with a value
| |
Multiply(Matrix2x2, Matrix2x2) |
2d matrix multiplication
| |
Multiply(Matrix2x2, Vector2D) |
matrix * 2d vector, applies a matrix transform to a 2d-vector
|
Fields
Name | Description | |
---|---|---|
a |
The 1. data element of 1. row
| |
b |
The 2. data element of 1. row
| |
c |
The 1. data element of 2. row
| |
d |
The 2. data element of 2. row
|