From 61f3ab8f23f4c924d455757bf3e65f8487521b5a Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 13 Apr 2024 13:57:42 +0200 Subject: Adding upstream version 1.3. Signed-off-by: Daniel Baumann --- src/cython/_common_decl.pxd | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/cython/_common_decl.pxd (limited to 'src/cython/_common_decl.pxd') 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) -- cgit v1.2.3