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