summaryrefslogtreecommitdiffstats
path: root/src/cython/_common_decl.pxd
diff options
context:
space:
mode:
Diffstat (limited to 'src/cython/_common_decl.pxd')
-rw-r--r--src/cython/_common_decl.pxd14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/cython/_common_decl.pxd b/src/cython/_common_decl.pxd
new file mode 100644
index 0000000..8877048
--- /dev/null
+++ b/src/cython/_common_decl.pxd
@@ -0,0 +1,14 @@
+from libcpp.vector cimport vector
+from libcpp.pair cimport pair
+
+ctypedef double Coord
+ctypedef int IntCoord
+
+cdef extern from "2geom/coord.h" namespace "Geom":
+ cdef Coord EPSILON
+ cdef enum Dim2:
+ X = 0
+ Y = 1
+
+cdef object wrap_vector_double(vector[double] v)
+cdef vector[double] make_vector_double(object l)