diff options
Diffstat (limited to 'generic/Geo.h')
-rw-r--r-- | generic/Geo.h | 25 |
1 files changed, 23 insertions, 2 deletions
diff --git a/generic/Geo.h b/generic/Geo.h index 60f7e1a..bdb7c80 100644 --- a/generic/Geo.h +++ b/generic/Geo.h @@ -74,6 +74,19 @@ void +POLY_INIT(ZnPoly *poly); +void +POLY_CONTOUR1(ZnPoly *poly, + ZnPoint *pts, + int num_pts); +void +POLY_SET(ZnPoly *poly1, + ZnPoly *poly2); +void +POLY_FREE(ZnPoly *poly); + + +void Anchor2Origin(ZnPoint *position, ZnDim width, ZnDim height, @@ -147,7 +160,8 @@ PolylineInBBox(ZnPoint *points, int PolygonInBBox(ZnPoint *points, int num_points, - ZnBBox *bbox); + ZnBBox *bbox, + ZnBool *area_enclosed); int OvalInBBox(ZnPoint *center, @@ -258,7 +272,8 @@ BezierSubdivide(ZnPoint *controls, ZnBool first); void -SmoothPathWithBezier(ZnList from_points, +SmoothPathWithBezier(ZnPoint *from_points, + int num_points, ZnList to_points); void @@ -272,6 +287,12 @@ GetArcPath(ZnReal start_angle, ZnList to_points); void +FitBezier(ZnPoint *pts, + int num_points, + ZnReal error, + ZnList controls); + +void GetLineEnd(ZnPoint *p1, ZnPoint *p2, unsigned int line_width, |