Logo Search packages:      
Sourcecode: inkscape version File versions

unsigned Geom::valuation ( SBasis const &  a,
double  tol = 0 
) [inline]

Returns the degree of the first non zero coefficient.

a sbasis function
tol largest abs val considered 0
first non zero coefficient

Definition at line 318 of file sbasis.h.

Referenced by compose_inverse().

    unsigned val=0;
    while( val<a.size() &&
           fabs(a[val][0])<tol &&
           fabs(a[val][1])<tol ) 
    return val;

Generated by  Doxygen 1.6.0   Back to index