summaryrefslogtreecommitdiffstats
path: root/src/libnr/nr-rect.h
diff options
context:
space:
mode:
authorMaximilian Albert <maximilian.albert@gmail.com>2007-09-11 18:52:42 +0000
committercilix42 <cilix42@users.sourceforge.net>2007-09-11 18:52:42 +0000
commit5cd4a51fc2b0ad30c4baf94d77c8322eb5295bea (patch)
tree75d791104b5108841a443c165c5fc5cf0b3af3aa /src/libnr/nr-rect.h
parentUpdate shortcuts for 3D box tool (diff)
downloadinkscape-5cd4a51fc2b0ad30c4baf94d77c8322eb5295bea.tar.gz
inkscape-5cd4a51fc2b0ad30c4baf94d77c8322eb5295bea.zip
Compute farthest-from-center point correctly in Alt+rotation
(bzr r3723)
Diffstat (limited to 'src/libnr/nr-rect.h')
-rw-r--r--src/libnr/nr-rect.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libnr/nr-rect.h b/src/libnr/nr-rect.h
index 46aff13f4..439538e29 100644
--- a/src/libnr/nr-rect.h
+++ b/src/libnr/nr-rect.h
@@ -53,6 +53,8 @@ public:
/** returns the midpoint of this rect. */
Point midpoint() const;
+ Point cornerFarthestFrom(Point const &p) const;
+
/** True iff either width or height is less than \a epsilon. */
bool isEmpty(double epsilon=1e-6) const {
return isEmpty<X>(epsilon) || isEmpty<Y>(epsilon);