summaryrefslogtreecommitdiffstats
path: root/src/libnr
diff options
context:
space:
mode:
authorDiederik van Lierop <mail@diedenrezi.nl>2008-03-25 22:12:45 +0000
committerdvlierop2 <dvlierop2@users.sourceforge.net>2008-03-25 22:12:45 +0000
commit8a5bebb2b8946eee675c7fee4f7448d5d42e71b6 (patch)
tree52a6480eccdb74cdaca13d88e7f6fc5528be3b71 /src/libnr
parentwhitespace. tab to spaces. improve readability (diff)
downloadinkscape-8a5bebb2b8946eee675c7fee4f7448d5d42e71b6.tar.gz
inkscape-8a5bebb2b8946eee675c7fee4f7448d5d42e71b6.zip
Major overhaul of the selector tool's internals to improve handling of transformations, origins and snapping, for both visual and geometric bounding boxes (see for example bug #174046 in Launchpad)
(bzr r5189)
Diffstat (limited to 'src/libnr')
-rw-r--r--src/libnr/nr-scale.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libnr/nr-scale.h b/src/libnr/nr-scale.h
index c9de871de..b4dbd1fb5 100644
--- a/src/libnr/nr-scale.h
+++ b/src/libnr/nr-scale.h
@@ -28,9 +28,14 @@ public:
bool operator!=(scale const &o) const {
return _p != o._p;
}
+
scale inverse() const {
return scale(1/_p[0], 1/_p[1]);
}
+
+ NR::Point point() const {
+ return _p;
+ }
};
} /* namespace NR */