summaryrefslogtreecommitdiffstats
path: root/src/2geom/geom.h
diff options
context:
space:
mode:
authorJohan B. C. Engelen <jbc.engelen@swissonline.ch>2007-11-09 23:15:51 +0000
committerjohanengelen <johanengelen@users.sourceforge.net>2007-11-09 23:15:51 +0000
commite74f90ca3ce8c75e84d48b66a8a4e594c415b541 (patch)
treee306ccc400c5ed90995bd9130f3ddf0c55a17fe5 /src/2geom/geom.h
parentallow for _option in radiobuttons for XML translation (diff)
downloadinkscape-e74f90ca3ce8c75e84d48b66a8a4e594c415b541.tar.gz
inkscape-e74f90ca3ce8c75e84d48b66a8a4e594c415b541.zip
Remove geom.cpp and geom.h. Now use 2geom/geom.cpp and 2geom.h.
Add conversion functions between Geom::Point and NR::Point (bzr r4050)
Diffstat (limited to 'src/2geom/geom.h')
-rw-r--r--src/2geom/geom.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/2geom/geom.h b/src/2geom/geom.h
index 5386edbd7..c24acea63 100644
--- a/src/2geom/geom.h
+++ b/src/2geom/geom.h
@@ -31,12 +31,16 @@
* the specific language governing rights and limitations.
*
*/
+#ifndef SEEN_2Geom_GEOM_H
+#define SEEN_2Geom_GEOM_H
//TODO: move somewhere else
#include <vector>
#include "point.h"
+namespace Geom {
+
enum IntersectorKind {
intersects = 0,
parallel,
@@ -66,3 +70,7 @@ line_twopoint_intersect(Geom::Point const &p00, Geom::Point const &p01,
Geom::Point &result);
int centroid(std::vector<Geom::Point> p, Geom::Point& centroid, double &area);
+
+}
+
+#endif