Description
Functions
bool | equal(const float u, const float v) |
bool | invertMatrix(float * a, uint16_t n) |
Documentation
function
Util::Numeric::equal
public | inline |
bool equal( | const float | u, |
const float | v | |
) |
Test if the two parameters are essentially equal as defined in the given reference by Knuth.
Parameters
- u
- First floating point parameter.
- v
- Second floating point parameter.
Returns
true
if both floating point values are essentially equal,false
otherwise.
See also: Donald E. Knuth: The art of computer programming. Volume II: Seminumerical algorithms. Addison-Wesley, 1969. Page 128, Equation (24).
Defined in Util/Numeric.h:36
function
Util::Numeric::invertMatrix
public | inline |
bool invertMatrix( | float * | a, |
uint16_t | n | |
) |
originally from:http://www.zeiner.at/c/Matrix.html
Calculates inverse of matrix a. a must be a matrix of size nx2n and the matrix which should be inverted is on the left side. Unit vectors on the right side will be added by function.
matrix a matrix a^(-1) a11 a12 a13 | 1 0 0 1 0 0 | b11 b12 b13 a21 a22 a23 | 0 1 0 => 0 1 0 | b21 b22 b23 a31 a32 a33 | 0 0 1 0 0 1 | b31 b32 b33 |
Parameters
- a
- matrix to be inverted
- n
- size of matrix nx2n
Returns
true if inversion was successful
Defined in Util/Numeric.h:57