diff options
author | lecoanet | 2000-02-02 14:01:15 +0000 |
---|---|---|
committer | lecoanet | 2000-02-02 14:01:15 +0000 |
commit | 64089dca388f5a9a8235a94b4372763875132219 (patch) | |
tree | 0455fa06d471a568cbece8fc27cde0216d4def23 /generic/Geo.h | |
parent | 2b91521b4c124546e59638f2e990dcbc75903d85 (diff) | |
download | tkzinc-64089dca388f5a9a8235a94b4372763875132219.zip tkzinc-64089dca388f5a9a8235a94b4372763875132219.tar.gz tkzinc-64089dca388f5a9a8235a94b4372763875132219.tar.bz2 tkzinc-64089dca388f5a9a8235a94b4372763875132219.tar.xz |
Passage en Zinc
Diffstat (limited to 'generic/Geo.h')
-rw-r--r-- | generic/Geo.h | 264 |
1 files changed, 132 insertions, 132 deletions
diff --git a/generic/Geo.h b/generic/Geo.h index 00382ea..8a173b1 100644 --- a/generic/Geo.h +++ b/generic/Geo.h @@ -70,199 +70,199 @@ void -Anchor2Origin(RadarPoint *position, - RadarDim width, - RadarDim height, - RadarAnchor anchor, - RadarPoint *origin); +Anchor2Origin(ZnPoint *position, + ZnDim width, + ZnDim height, + ZnAnchor anchor, + ZnPoint *origin); void -Origin2Anchor(RadarPoint *origin, - RadarDim width, - RadarDim height, - RadarAnchor anchor, - RadarPoint *position); +Origin2Anchor(ZnPoint *origin, + ZnDim width, + ZnDim height, + ZnAnchor anchor, + ZnPoint *position); void -BBox2XRect(RadarBBox *bbox, +BBox2XRect(ZnBBox *bbox, XRectangle *rect); void -GetStringBBox(char *str, - RadarFont font, - RadarPos x, - RadarPos y, - RadarBBox *str_bbox); +GetStringBBox(char *str, + ZnFont font, + ZnPos x, + ZnPos y, + ZnBBox *str_bbox); void -ResetBBox(RadarBBox *bbox); +ResetBBox(ZnBBox *bbox); void -CopyBBox(RadarBBox *bbox_from, - RadarBBox *bbox_to); +CopyBBox(ZnBBox *bbox_from, + ZnBBox *bbox_to); void -IntersectBBox(RadarBBox *bbox1, - RadarBBox *bbox2, - RadarBBox *bbox_inter); -RadarBool -IsEmptyBBox(RadarBBox *bbox); +IntersectBBox(ZnBBox *bbox1, + ZnBBox *bbox2, + ZnBBox *bbox_inter); +ZnBool +IsEmptyBBox(ZnBBox *bbox); void -AddBBoxToBBox(RadarBBox *bbox, - RadarBBox *bbox2); +AddBBoxToBBox(ZnBBox *bbox, + ZnBBox *bbox2); void -AddPointToBBox(RadarBBox *bbox, - RadarPos px, - RadarPos py); +AddPointToBBox(ZnBBox *bbox, + ZnPos px, + ZnPos py); void -AddPointsToBBox(RadarBBox *bbox, - RadarPoint *points, - int num_points); +AddPointsToBBox(ZnBBox *bbox, + ZnPoint *points, + int num_points); void -AddStringToBBox(RadarBBox *bbox, - char *str, - RadarFont font, - RadarPos cx, - RadarPos cy); -RadarBool -PointInBBox(RadarBBox *bbox, - RadarPos x, - RadarPos y); +AddStringToBBox(ZnBBox *bbox, + char *str, + ZnFont font, + ZnPos cx, + ZnPos cy); +ZnBool +PointInBBox(ZnBBox *bbox, + ZnPos x, + ZnPos y); int -LineInBBox(RadarPoint *p1, - RadarPoint *p2, - RadarBBox *bbox); +LineInBBox(ZnPoint *p1, + ZnPoint *p2, + ZnBBox *bbox); int -BBoxInBBox(RadarBBox *bbox1, - RadarBBox *bbox2); +BBoxInBBox(ZnBBox *bbox1, + ZnBBox *bbox2); int -PolylineInBBox(RadarPoint *points, - int num_points, - int width, - int cap_style, - int join_style, - RadarBBox *bbox); +PolylineInBBox(ZnPoint *points, + int num_points, + int width, + int cap_style, + int join_style, + ZnBBox *bbox); int -PolygonInBBox(RadarPoint *points, - int num_points, - RadarBBox *bbox); +PolygonInBBox(ZnPoint *points, + int num_points, + ZnBBox *bbox); int -OvalInBBox(RadarPoint *center, +OvalInBBox(ZnPoint *center, int width, int height, - RadarBBox *bbox); - -RadarBool -HorizLineToArc(RadarReal x1, - RadarReal x2, - RadarReal y, - RadarReal rx, - RadarReal ry, - RadarReal start_angle, - RadarReal angle_extent); - -RadarBool -VertLineToArc(RadarReal x, - RadarReal y1, - RadarReal y2, - RadarReal rx, - RadarReal ry, - RadarReal start_angle, - RadarReal angle_extent); - -RadarBool + ZnBBox *bbox); + +ZnBool +HorizLineToArc(ZnReal x1, + ZnReal x2, + ZnReal y, + ZnReal rx, + ZnReal ry, + ZnReal start_angle, + ZnReal angle_extent); + +ZnBool +VertLineToArc(ZnReal x, + ZnReal y1, + ZnReal y2, + ZnReal rx, + ZnReal ry, + ZnReal start_angle, + ZnReal angle_extent); + +ZnBool PointInAngle(int start_angle, int angle_extent, - RadarPoint *p); + ZnPoint *p); double -RectangleToPointDist(RadarBBox *bbox, - RadarPoint *p); +RectangleToPointDist(ZnBBox *bbox, + ZnPoint *p); double -LineToPointDist(RadarPoint *p1, - RadarPoint *p2, - RadarPoint *p); +LineToPointDist(ZnPoint *p1, + ZnPoint *p2, + ZnPoint *p); double -PolygonToPointDist(RadarPoint *points, +PolygonToPointDist(ZnPoint *points, int num_points, - RadarPoint *p); + ZnPoint *p); double -PolylineToPointDist(RadarPoint *points, +PolylineToPointDist(ZnPoint *points, int num_points, int width, int cap_style, int join_style, - RadarPoint *p); + ZnPoint *p); double -OvalToPointDist(RadarPoint *center, - int width, - int height, +OvalToPointDist(ZnPoint *center, + int width, + int height, unsigned int line_width, - RadarPoint *p); + ZnPoint *p); void -GetButtPoints(RadarPoint *p1, - RadarPoint *p2, - int width, - RadarBool projecting, - RadarPoint *c1, - RadarPoint *c2); - -RadarBool -GetMiterPoints(RadarPoint *p1, - RadarPoint *p2, - RadarPoint *p3, - int width, - RadarPoint *c1, - RadarPoint *c2); - -RadarBool -IntersectLines(RadarPoint *a1, - RadarPoint *a2, - RadarPoint *b1, - RadarPoint *b2, - RadarPoint *pi); +GetButtPoints(ZnPoint *p1, + ZnPoint *p2, + int width, + ZnBool projecting, + ZnPoint *c1, + ZnPoint *c2); + +ZnBool +GetMiterPoints(ZnPoint *p1, + ZnPoint *p2, + ZnPoint *p3, + int width, + ZnPoint *c1, + ZnPoint *c2); + +ZnBool +IntersectLines(ZnPoint *a1, + ZnPoint *a2, + ZnPoint *b1, + ZnPoint *b2, + ZnPoint *pi); void -ShiftLine(RadarPoint *p1, - RadarPoint *p2, - RadarReal dist, - RadarPoint *p3, - RadarPoint *p4); +ShiftLine(ZnPoint *p1, + ZnPoint *p2, + ZnReal dist, + ZnPoint *p3, + ZnPoint *p4); void -InsetPolygon(RadarPoint *p, +InsetPolygon(ZnPoint *p, int num_points, - RadarDim inset); + ZnDim inset); void -BezierSubdivide(RadarPoint *controls, - RadarReal t, - RadarBool first); +BezierSubdivide(ZnPoint *controls, + ZnReal t, + ZnBool first); void -SmoothPathWithBezier(RadarList from_points, - RadarList to_points); +SmoothPathWithBezier(ZnList from_points, + ZnList to_points); void -GetBezierPath(RadarList from_points, - RadarList to_points); +GetBezierPath(ZnList from_points, + ZnList to_points); void -GetArcPath(RadarReal start_angle, - RadarReal end_angle, +GetArcPath(ZnReal start_angle, + ZnReal end_angle, int type, - RadarList to_points); + ZnList to_points); void -GetLineEnd(RadarPoint *p1, - RadarPoint *p2, +GetLineEnd(ZnPoint *p1, + ZnPoint *p2, unsigned int line_width, int cap_style, LineEnd end_style, - RadarPoint *points); + ZnPoint *points); #endif /* _Geo_h */ |