summaryrefslogtreecommitdiffstats
path: root/src/cython/_common_decl.pxd
blob: 8877048f8a951b2bc6484e2627050615bd23001d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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)