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 return ret;
12 }
15 /*
16 Local Variables:
17 mode:c++
18 c-file-style:"stroustrup"
19 c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
20 indent-tabs-mode:nil
21 fill-column:99
22 End:
23 */
24 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :