~centralelyon2010/inkscape/imagelinks2

« back to all changes in this revision

Viewing changes to src/libnr/nr-matrix-div.cpp

  • Committer: JazzyNico
  • Date: 2011-08-29 20:25:30 UTC
  • Revision ID: nicoduf@yahoo.fr-20110829202530-6deuoz11q90usldv
Code refactoring and merging with trunk (revision 10599).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#include "libnr/nr-matrix-ops.h"
2
 
#include "libnr/nr-point-matrix-ops.h"
3
 
 
4
 
NR::Point operator/(NR::Point const &p, NR::Matrix const &m) {
5
 
    return p * m.inverse();
6
 
}
7
 
 
8
 
NR::Matrix operator/(NR::Matrix const &a, NR::Matrix const &b) {
9
 
    return a * b.inverse();
10
 
}
11
 
 
12
 
 
13
 
/*
14
 
  Local Variables:
15
 
  mode:c++
16
 
  c-file-style:"stroustrup"
17
 
  c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
18
 
  indent-tabs-mode:nil
19
 
  fill-column:99
20
 
  End:
21
 
*/
22
 
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4 :