Logo Search packages:      
Sourcecode: inkscape version File versions  Download package

NR::Matrix matrix_from_desktop ( NR::Matrix const   m,
SPItem const *  item 
)

Converts a matrix m from the desktop coords of the item. Will become a noop when we eliminate the coordinate flipping.

Definition at line 1377 of file sp-item.cpp.

{
    NR::Matrix const ret(NR::scale(1, -1)
                         * NR::translate(0, sp_document_height(SP_OBJECT_DOCUMENT(item)))
                         * m);
    return ret;
}


Generated by  Doxygen 1.6.0   Back to index