~valavanisalex/ubuntu/precise/inkscape/fix-943984

« back to all changes in this revision

Viewing changes to inkscape-0.47pre1/src/libnr/nr-matrix-ops.h

  • Committer: Bazaar Package Importer
  • Author(s): Bryce Harrington
  • Date: 2009-07-02 17:09:45 UTC
  • mfrom: (1.1.9 upstream)
  • Revision ID: james.westby@ubuntu.com-20090702170945-nn6d6zswovbwju1t
Tags: 0.47~pre1-0ubuntu1
* New upstream release.
  - Don't constrain maximization on small resolution devices (pre0)
    (LP: #348842)
  - Fixes segfault on startup (pre0)
    (LP: #391149)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* operator functions for NR::Matrix. */
 
2
#ifndef SEEN_NR_MATRIX_OPS_H
 
3
#define SEEN_NR_MATRIX_OPS_H
 
4
 
 
5
#include <libnr/nr-matrix.h>
 
6
 
 
7
namespace NR {
 
8
 
 
9
inline bool operator==(Matrix const &a, Matrix const &b)
 
10
{
 
11
    for(unsigned i = 0; i < 6; ++i) {
 
12
        if ( a[i] != b[i] ) {
 
13
            return false;
 
14
        }
 
15
    }
 
16
    return true;
 
17
}
 
18
 
 
19
inline bool operator!=(Matrix const &a, Matrix const &b)
 
20
{
 
21
    return !( a == b );
 
22
}
 
23
 
 
24
Matrix operator*(Matrix const &a, Matrix const &b);
 
25
 
 
26
inline Matrix &operator*=(Matrix &a, Matrix const &b) { a = a * b; return a; }
 
27
 
 
28
} /* namespace NR */
 
29
 
 
30
#endif /* !SEEN_NR_MATRIX_OPS_H */
 
31
 
 
32
/*
 
33
  Local Variables:
 
34
  mode:c++
 
35
  c-file-style:"stroustrup"
 
36
  c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
 
37
  indent-tabs-mode:nil
 
38
  fill-column:99
 
39
  End:
 
40
*/
 
41
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :