summaryrefslogtreecommitdiffstats
path: root/src/2geom/transforms.h
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2008-10-11 15:16:23 +0000
committerTed Gould <ted@canonical.com>2008-10-11 15:16:23 +0000
commit2f5eb047d9e05be5e68549ef6b75070d2faa7d2f (patch)
treeca2e94164b6d7aaebfc17196ca46bfc825a7665a /src/2geom/transforms.h
parentMerge from trunk. (diff)
downloadinkscape-2f5eb047d9e05be5e68549ef6b75070d2faa7d2f.tar.gz
inkscape-2f5eb047d9e05be5e68549ef6b75070d2faa7d2f.zip
Merging from trunk
(bzr r6884)
Diffstat (limited to 'src/2geom/transforms.h')
-rw-r--r--src/2geom/transforms.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/2geom/transforms.h b/src/2geom/transforms.h
index 898b095b5..d21c5c617 100644
--- a/src/2geom/transforms.h
+++ b/src/2geom/transforms.h
@@ -84,6 +84,7 @@ class Rotate {
explicit Rotate(Coord x, Coord y) { Rotate(Point(x, y)); }
inline operator Matrix() const { return Matrix(vec[X], vec[Y], -vec[Y], vec[X], 0, 0); }
+ inline Point vector() const { return vec; }
inline Coord operator[](Dim2 const dim) const { return vec[dim]; }
inline Coord operator[](unsigned const dim) const { return vec[dim]; }
inline bool operator==(Rotate const &o) const { return vec == o.vec; }