Logo Search packages:      
Sourcecode: inkscape version File versions

SBasis Geom::shift ( Linear const &  a,
int  sh 
)

multiply a by x^sh (Exact)

Parameters:
a linear function
sh power
Returns:
a* x^sh

Definition at line 212 of file sbasis.cpp.

                                      {
    size_t n = 1+sh;
    SBasis c(n, Linear());
    
    for(int i = 0; i < sh; i++)
        c[i] = Linear(0,0);
    if(sh >= 0)
        c[sh] = a;
    return c;
}


Generated by  Doxygen 1.6.0   Back to index