summaryrefslogtreecommitdiffstats
path: root/src/2geom/rect.cpp
diff options
context:
space:
mode:
authorJabier Arraiza Cenoz <jabier.arraiza@marker.es>2015-07-24 18:50:50 +0000
committerJabiertxof <jtx@jtx.marker.es>2015-07-24 18:50:50 +0000
commit93cbf2b74b58f8e327bf179cba8e778a4339a3a8 (patch)
treebdf4fd04d479bdcc5705579056372a1c8da2ff21 /src/2geom/rect.cpp
parentupdate to trunk (diff)
parentFix a bug continuing a bezier path whith a LPE one like spiro or bspline on a... (diff)
downloadinkscape-93cbf2b74b58f8e327bf179cba8e778a4339a3a8.tar.gz
inkscape-93cbf2b74b58f8e327bf179cba8e778a4339a3a8.zip
update to trunk
(bzr r13682.1.27)
Diffstat (limited to 'src/2geom/rect.cpp')
-rw-r--r--src/2geom/rect.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/2geom/rect.cpp b/src/2geom/rect.cpp
index 0cb842d29..383e72c8e 100644
--- a/src/2geom/rect.cpp
+++ b/src/2geom/rect.cpp
@@ -84,6 +84,17 @@ Coord distance(Point const &p, Rect const &rect)
return hypot(dx, dy);
}
+Coord distanceSq(Point const &p, OptRect const &rect)
+{
+ if (!rect) return std::numeric_limits<Coord>::max();
+ return distanceSq(p, *rect);
+}
+Coord distance(Point const &p, OptRect const &rect)
+{
+ if (!rect) return std::numeric_limits<Coord>::max();
+ return distance(p, *rect);
+}
+
} // namespace Geom
/*