Logo Search packages:      
Sourcecode: inkscape version File versions

std::vector< double > Geom::offset_doubles ( std::vector< double > const &  x,
double  offs 
)

Convenience function to add a value to each entry in a vector of doubles.

Definition at line 471 of file path-intersection.cpp.

References offset_doubles().

Referenced by offset_doubles(), and path_mono_splits().

                                                                          {
    std::vector<double> ret;
    for(unsigned i = 0; i < x.size(); i++) {
        ret.push_back(x[i] + offs);
    }
    return ret;
}


Generated by  Doxygen 1.6.0   Back to index