1 #ifndef SEEN_LIBNR_NR_MATRIX_TRANSLATE_OPS_H
2 #define SEEN_LIBNR_NR_MATRIX_TRANSLATE_OPS_H
4 /** \file
5 * Declarations (and definition if inline) of operator
6 * blah (NR::Matrix, NR::translate).
7 */
9 #include "libnr/nr-matrix.h"
10 #include "libnr/nr-translate.h"
12 //NR::Matrix operator*(NR::Matrix const &m, NR::translate const &t);
14 namespace NR {
15 Matrix operator*(Matrix const &m, translate const &t);
16 }
18 inline NR::Matrix
19 operator/(NR::Matrix const &numer, NR::translate const &denom)
20 {
21 return numer * NR::translate(-denom.offset);
22 }
25 #endif /* !SEEN_LIBNR_NR_MATRIX_TRANSLATE_OPS_H */
27 /*
28 Local Variables:
29 mode:c++
30 c-file-style:"stroustrup"
31 c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
32 indent-tabs-mode:nil
33 fill-column:99
34 End:
35 */
36 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :