Code

fix by dvlierop2 for snapping bugs 1579556 and 1579587
[inkscape.git] / src / libnr / nr-matrix-translate-ops.cpp
1 #include "libnr/nr-matrix-ops.h"
3 namespace NR {
5 Matrix
6 operator*(Matrix const &m, translate const &t)
7 {
8     Matrix ret(m);
9     ret[4] += t[X];
10     ret[5] += t[Y];
11     assert_close( ret, m * Matrix(t) );
12     return ret;
13 }
15 }  // namespace NR
17 /*
18   Local Variables:
19   mode:c++
20   c-file-style:"stroustrup"
21   c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
22   indent-tabs-mode:nil
23   fill-column:99
24   End:
25 */
26 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :