#include "tPolynomial.h"

Go to the source code of this file.
Classes | |
| class | tPolynomialWithBase< T > |
| mathematical function (to be moved into tools sometime, and currently limited to linear functions) More... | |
Defines | |
| #define | DELTA 1e-10 |
Functions | |
| T & | operator<< (T &m, tPolynomialWithBase< T > const &f) |
| template<typename T> | |
| T & | operator>> (T &m, tPolynomialWithBase< T > &f) |
| function network message writing operator | |
| template<typename T> | |
| bool | operator== (const tPolynomialWithBase< T > &left, const tPolynomial< T > &right) |
| function network message reading operator | |
| template<typename T> | |
| bool | operator== (const tPolynomialWithBase< T > &left, const tPolynomialWithBase< T > &right) |
| #define DELTA 1e-10 |
Definition at line 125 of file tPolynomialWithBase.h.
| T& operator<< | ( | T & | m, | |
| tPolynomialWithBase< T > const & | f | |||
| ) |
| bool operator== | ( | const tPolynomialWithBase< T > & | left, | |
| const tPolynomialWithBase< T > & | right | |||
| ) | [inline] |
Definition at line 128 of file tPolynomialWithBase.h.
References DELTA, and tPolynomialWithBase< T >::unadjustableOffset.
00129 { 00130 bool res = static_cast<tPolynomial<T> >(left) == static_cast<tPolynomial<T> >(right); 00131 00132 if(true == res) { 00133 // float/double equality doesnt exist. Accept small difference as equal. 00134 res = ( fabs(left.unadjustableOffset - right.unadjustableOffset) < DELTA); 00135 } 00136 00137 return res; 00138 }
| bool operator== | ( | const tPolynomialWithBase< T > & | left, | |
| const tPolynomial< T > & | right | |||
| ) | [inline] |
function network message reading operator
| T& operator>> | ( | T & | m, | |
| tPolynomialWithBase< T > & | f | |||
| ) | [inline] |
function network message writing operator
1.5.4