User Tools

Site Tools


2x2_matrix

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

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 ''[]'' operator, and as member variables. The values of the matrix are stored in such a way that you can access them both by the ''[]'' operator, and as member variables.
  
-As variables:+As an array:
 <code c> <code c>
 float ImpulsePhysics::Matrix2x2::Determinant() const { float ImpulsePhysics::Matrix2x2::Determinant() const {
Line 12: Line 12:
 </code> </code>
  
-As an array:+As variables:
 <code c> <code c>
 float ImpulsePhysics::Matrix2x2::Determinant() const { float ImpulsePhysics::Matrix2x2::Determinant() const {
Line 21: Line 21:
  
 2x2 matrices offer the following functions within their class: 2x2 matrices offer the following functions within their class:
-  * Transpose +  * ''Transpose'' 
-  * Determinant +  * ''Determinant'' 
-  * Inverse +  * ''Inverse'' 
-  * Adjugate (aka adjoint)+  * ''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 ''ImpulsePhysics::Matrices'' namespace, you also get access to these utility functions: As part of the ''ImpulsePhysics::Matrices'' namespace, you also get access to these utility functions:
-  * ''Cut2x2'', which 'cuts' a 2x2 matrix out of a 3x3 matrix+  * ''Cut2x2'', which 'cuts' a 2x2 matrix out of a [[3x3_matrix|3x3 matrix]]
   * ''Minor''   * ''Minor''
   * ''Cofactor''   * ''Cofactor''
2x2_matrix.1651324021.txt.gz · Last modified: 2022/04/30 13:07 by max