summaryrefslogtreecommitdiffstats
path: root/src/cython/_cy_conicsection.pxd
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-13 11:57:42 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-13 11:57:42 +0000
commit61f3ab8f23f4c924d455757bf3e65f8487521b5a (patch)
tree885599a36a308f422af98616bc733a0494fe149a /src/cython/_cy_conicsection.pxd
parentInitial commit. (diff)
downloadlib2geom-upstream.tar.xz
lib2geom-upstream.zip
Adding upstream version 1.3.upstream/1.3upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/cython/_cy_conicsection.pxd')
-rw-r--r--src/cython/_cy_conicsection.pxd50
1 files changed, 50 insertions, 0 deletions
diff --git a/src/cython/_cy_conicsection.pxd b/src/cython/_cy_conicsection.pxd
new file mode 100644
index 0000000..f330cd3
--- /dev/null
+++ b/src/cython/_cy_conicsection.pxd
@@ -0,0 +1,50 @@
+from _common_decl cimport *
+
+from libcpp.vector cimport vector
+from libcpp.pair cimport pair
+
+from _cy_rectangle cimport Interval, OptInterval, Rect, OptRect
+from _cy_rectangle cimport cy_OptRect
+from _cy_affine cimport is_transform, get_Affine, Affine
+from _cy_curves cimport Curve, cy_Curve, wrap_Curve_p
+from _cy_curves cimport SBasis, cy_SBasis
+from _cy_curves cimport EllipticalArc, cy_EllipticalArc, wrap_EllipticalArc
+
+from _cy_path cimport Path, cy_Path
+
+from _cy_primitives cimport Point, cy_Point, wrap_Point, wrap_vector_point, make_vector_point
+
+
+cdef extern from "2geom/circle.h" namespace "Geom":
+ cdef cppclass Circle:
+ Circle()
+ Circle(double, double, double)
+ Circle(Point, double)
+ Circle(double, double, double, double)
+ Circle(vector[Point] &)
+ void setCenter(Point &)
+ void setRadius(double)
+ void set(double, double, double, double)
+ void fit(vector[Point] &)
+ EllipticalArc * arc(Point &, Point &, Point &, bint)
+ Point center()
+ Coord center(Dim2)
+ Coord radius()
+
+cdef extern from "2geom/ellipse.h" namespace "Geom":
+ cdef cppclass Ellipse:
+ Ellipse()
+ Ellipse(double, double, double, double, double)
+ Ellipse(double, double, double, double, double, double)
+ Ellipse(vector[Point] &)
+ Ellipse(Circle &)
+ void set(double, double, double, double, double)
+ void set(double, double, double, double, double, double)
+ void set(vector[Point] &)
+ EllipticalArc * arc(Point &, Point &, Point &, bint)
+ Point center()
+ Coord center(Dim2)
+ Coord ray(Dim2)
+ Coord rot_angle()
+ vector[double] implicit_form_coefficients()
+ Ellipse transformed(Affine &)