Code

rationalize function names and remove spurious soft_ptr
[inkscape.git] / src / libnr / nr-scale-matrix-ops.cpp
1 #include "libnr/nr-matrix-ops.h"
3 NR::Matrix
4 operator*(NR::scale const &s, NR::Matrix const &m)
5 {
6     using NR::X; using NR::Y;
7     NR::Matrix ret(m);
8     ret[0] *= s[X];
9     ret[1] *= s[X];
10     ret[2] *= s[Y];
11     ret[3] *= s[Y];
12     assert_close( ret, NR::Matrix(s) * m );
13     return ret;
14 }
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 :