summaryrefslogtreecommitdiffstats
path: root/src/2geom/geom.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/2geom/geom.h')
-rw-r--r--src/2geom/geom.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/2geom/geom.h b/src/2geom/geom.h
index aeb40f7e1..d0af7d7d2 100644
--- a/src/2geom/geom.h
+++ b/src/2geom/geom.h
@@ -38,6 +38,7 @@
#include <vector>
#include <2geom/point.h>
+#include <2geom/rect.h>
namespace Geom {
@@ -73,6 +74,11 @@ std::vector<Geom::Point>
rect_line_intersect(Geom::Point const &E, Geom::Point const &F,
Geom::Point const &p0, Geom::Point const &p1);
+
+std::vector<Geom::Point>
+rect_line_intersect(Geom::Rect &r,
+ Geom::Point const &p0, Geom::Point const &p1);
+
int centroid(std::vector<Geom::Point> p, Geom::Point& centroid, double &area);
}