Logo Search packages:      
Sourcecode: inkscape version File versions

SBasis Geom::reverse ( SBasis const &  a  )  [inline]

Returns a function which reverses the domain of a.

Parameters:
a sbasis function
useful for reversing a parameteric curve.

Definition at line 194 of file sbasis.h.

Referenced by Inkscape::Text::Layout::Calculator::_findChunksForLine().

                                       {
    SBasis result(a.size(), Linear());
    
    for(unsigned k = 0; k < a.size(); k++)
        result[k] = reverse(a[k]);
    return result;
}


Generated by  Doxygen 1.6.0   Back to index