[gtk/curve-ops: 10/17] Implement gsk_conic_curve_split




commit 0f3453e7787426322c4769a371345903ddcd82da
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun Dec 6 22:09:48 2020 -0500

    Implement gsk_conic_curve_split
    
    This will be used in finding intersections of curves.

 gsk/gskcurveprivate.h | 6 ++++++
 1 file changed, 6 insertions(+)
---
diff --git a/gsk/gskcurveprivate.h b/gsk/gskcurveprivate.h
index 838841ad68..56d2864d24 100644
--- a/gsk/gskcurveprivate.h
+++ b/gsk/gskcurveprivate.h
@@ -107,6 +107,12 @@ void                    gsk_curve_get_bounds                    (const GskCurve
 void                    gsk_curve_get_tight_bounds              (const GskCurve         *curve,
                                                                  graphene_rect_t        *bounds);
 
+int                     gsk_curve_intersect                     (const GskCurve         *curve1,
+                                                                 const GskCurve         *curve2,
+                                                                 float                  *t1,
+                                                                 float                  *t2,
+                                                                 graphene_point_t       *p,
+                                                                 int                     n);
 
 G_END_DECLS
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]