Logo Search packages:      
Sourcecode: inkscape version File versions

OptRect Geom::unify ( OptRect const &  a,
OptRect const &  b 
) [inline]

Returns the smallest rectangle that encloses both rectangles. An empty argument is assumed to be an empty rectangle

Definition at line 240 of file rect.h.

Referenced by Inkscape::Selection::bounds().

    if (!a) {
        return b;
    } else if (!b) {
        return a;
    } else {
        return unify(*a, *b);

Generated by  Doxygen 1.6.0   Back to index