1 #include "libnr/nr-matrix-ops.h"
3 namespace NR {
5 Matrix
6 operator*(translate const &t, Matrix const &m)
7 {
8 Matrix ret(m);
9 ret[4] += m[0] * t[X] + m[2] * t[Y];
10 ret[5] += m[1] * t[X] + m[3] * t[Y];
11 return ret;
12 }
14 } /* 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 :