This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
2x2_matrix [2022/04/30 13:07] max created |
2x2_matrix [2022/05/25 11:02] (current) max correct access methods |
||
---|---|---|---|
Line 5: | Line 5: | ||
The values of the matrix are stored in such a way that you can access them both by the '' | The values of the matrix are stored in such a way that you can access them both by the '' | ||
- | As variables: | + | As an array: |
<code c> | <code c> | ||
float ImpulsePhysics:: | float ImpulsePhysics:: | ||
Line 12: | Line 12: | ||
</ | </ | ||
- | As an array: | + | As variables: |
<code c> | <code c> | ||
float ImpulsePhysics:: | float ImpulsePhysics:: | ||
Line 21: | Line 21: | ||
2x2 matrices offer the following functions within their class: | 2x2 matrices offer the following functions within their class: | ||
- | * Transpose | + | * '' |
- | * Determinant | + | * '' |
- | * Inverse | + | * '' |
- | * Adjugate (aka adjoint) | + | * '' |
Note that none of these functions will modify the current matrix object, rather they return a new 2x2 matrix with the operation applied. | Note that none of these functions will modify the current matrix object, rather they return a new 2x2 matrix with the operation applied. | ||
Line 30: | Line 30: | ||
As part of the '' | As part of the '' | ||
- | * '' | + | * '' |
* '' | * '' | ||
* '' | * '' |