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