Debian Codegraph @

src/gen/lib/common/taper__c.java

raw symbols SCIP
1 /* ========================================================================
2 * PlantUML : a free UML diagram generator
3 * ========================================================================
4 *
5 * Project Info: http://plantuml.com
6 *
7 * If you like this project or if you find it useful, you can support us at:
8 *
9 * http://plantuml.com/patreon (only 1$ per month!)
10 * http://plantuml.com/paypal
11 *
12 * This file is part of Smetana.
13 * Smetana is a partial translation of Graphviz/Dot sources from C to Java.
14 *
15 * (C) Copyright 2009-2020, Arnaud Roques
16 *
17 * This translation is distributed under the same Licence as the original C program:
18 *
19 *************************************************************************
20 * Copyright (c) 2011 AT&T Intellectual Property
21 * All rights reserved. This program and the accompanying materials
22 * are made available under the terms of the Eclipse Public License v1.0
23 * which accompanies this distribution, and is available at
24 * http://www.eclipse.org/legal/epl-v10.html
25 *
26 * Contributors: See CVS logs. Details at http://www.graphviz.org/
27 *************************************************************************
28 *
29 * THE ACCOMPANYING PROGRAM IS PROVIDED UNDER THE TERMS OF THIS ECLIPSE PUBLIC
30 * LICENSE ("AGREEMENT"). [Eclipse Public License - v 1.0]
31 *
32 * ANY USE, REPRODUCTION OR DISTRIBUTION OF THE PROGRAM CONSTITUTES
33 * RECIPIENT'S ACCEPTANCE OF THIS AGREEMENT.
34 *
35 * You may obtain a copy of the License at
36 *
37 * http://www.eclipse.org/legal/epl-v10.html
38 *
39 * Unless required by applicable law or agreed to in writing, software
40 * distributed under the License is distributed on an "AS IS" BASIS,
41 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
42 * See the License for the specific language governing permissions and
43 * limitations under the License.
44 *
45 */
46 package gen.lib.common;
47 import static smetana.core.Macro.UNSUPPORTED;
48
49 public class taper__c {
50 //1 2digov3edok6d5srhgtlmrycs
51 // extern lt_symlist_t lt_preloaded_symbols[]
52
53
54 //1 baedz5i9est5csw3epz3cv7z
55 // typedef Ppoly_t Ppolyline_t
56
57
58 //1 9k44uhd5foylaeoekf3llonjq
59 // extern Dtmethod_t* Dtset
60
61
62 //1 1ahfywsmzcpcig2oxm7pt9ihj
63 // extern Dtmethod_t* Dtbag
64
65
66 //1 anhghfj3k7dmkudy2n7rvt31v
67 // extern Dtmethod_t* Dtoset
68
69
70 //1 5l6oj1ux946zjwvir94ykejbc
71 // extern Dtmethod_t* Dtobag
72
73
74 //1 2wtf222ak6cui8cfjnw6w377z
75 // extern Dtmethod_t* Dtlist
76
77
78 //1 d1s1s6ibtcsmst88e3057u9r7
79 // extern Dtmethod_t* Dtstack
80
81
82 //1 axa7mflo824p6fspjn1rdk0mt
83 // extern Dtmethod_t* Dtqueue
84
85
86 //1 ega812utobm4xx9oa9w9ayij6
87 // extern Dtmethod_t* Dtdeque
88
89
90 //1 cyfr996ur43045jv1tjbelzmj
91 // extern Dtmethod_t* Dtorder
92
93
94 //1 wlofoiftbjgrrabzb2brkycg
95 // extern Dtmethod_t* Dttree
96
97
98 //1 12bds94t7voj7ulwpcvgf6agr
99 // extern Dtmethod_t* Dthash
100
101
102 //1 9lqknzty480cy7zsubmabkk8h
103 // extern Dtmethod_t _Dttree
104
105
106 //1 bvn6zkbcp8vjdhkccqo1xrkrb
107 // extern Dtmethod_t _Dthash
108
109
110 //1 9lidhtd6nsmmv3e7vjv9e10gw
111 // extern Dtmethod_t _Dtlist
112
113
114 //1 34ujfamjxo7xn89u90oh2k6f8
115 // extern Dtmethod_t _Dtqueue
116
117
118 //1 3jy4aceckzkdv950h89p4wjc8
119 // extern Dtmethod_t _Dtstack
120
121
122 //1 8dfqgf3u1v830qzcjqh9o8ha7
123 // extern Agmemdisc_t AgMemDisc
124
125
126 //1 18k2oh2t6llfsdc5x0wlcnby8
127 // extern Agiddisc_t AgIdDisc
128
129
130 //1 a4r7hi80gdxtsv4hdoqpyiivn
131 // extern Agiodisc_t AgIoDisc
132
133
134 //1 bnzt5syjb7mgeru19114vd6xx
135 // extern Agdisc_t AgDefaultDisc
136
137
138 //1 35y2gbegsdjilegaribes00mg
139 // extern Agdesc_t Agdirected, Agstrictdirected, Agundirected, Agstrictundirected
140
141
142 //1 c2rygslq6bcuka3awmvy2b3ow
143 // typedef Agsubnode_t Agnoderef_t
144
145
146 //1 xam6yv0dcsx57dtg44igpbzn
147 // typedef Dtlink_t Agedgeref_t
148
149
150 //1 ds76bidhz8tjxkw6b8aksdvxr
151 // static double currentmiterlimit = 10.0
152
153
154
155
156 //3 37hx3k37anj8r9mjvso4soefw
157 // static void addto (stroke_t* p, double x, double y)
158 public static Object addto(Object... arg) {
159 UNSUPPORTED("cxe7x5zvdqcgljx0c0ct5kj7v"); // static void addto (stroke_t* p, double x, double y)
160 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
161 UNSUPPORTED("2e0v7u9pfngzg11mt4kn3oudg"); // pointf pt;
162 UNSUPPORTED("dl6r4jnwf9tos614e6dxt54nu"); // if (p->nvertices >= p->flags) {
163 UNSUPPORTED("753dl99rp4kb8muohhjnrooiy"); // p->flags =+ 2000;
164 UNSUPPORTED("8gz00abtr7t59howsf2sghq4e"); // p->vertices = RALLOC(p->flags,p->vertices,pointf);
165 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
166 UNSUPPORTED("4x5drjd0ygppv2k94igpp68s2"); // pt.x = x;
167 UNSUPPORTED("e8848u2pml7agv3q6uepcvysp"); // pt.y = y;
168 UNSUPPORTED("8cr9bk6he8smdllk7y3v8zfzg"); // p->vertices[p->nvertices++] = pt;
169 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
170
171 throw new UnsupportedOperationException();
172 }
173
174
175
176
177 //3 5rbblyx7l2j8x4skajzxqiwaf
178 // static void arcn (stroke_t* p, double x, double y, double r, double a1, double a2)
179 public static Object arcn(Object... arg) {
180 UNSUPPORTED("3jgc82gtsuvmp7kj1sfwtf5uv"); // static void arcn (stroke_t* p, double x, double y, double r, double a1, double a2)
181 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
182 UNSUPPORTED("5xztbte7ezj843nawd7bvstet"); // double theta;
183 UNSUPPORTED("b17di9c7wgtqm51bvsyxz6e2f"); // int i;
184 UNSUPPORTED("82d861gclxfag8nh96t09jxtt"); // addto (p, x+r*cos(a1), y+r*sin(a1));
185 UNSUPPORTED("bjdcjivokvek6ql06bw4soztx"); // if (r == 0) return;
186 UNSUPPORTED("4lal8jxrwkulr8zpl5stsxkrt"); // while (a2 > a1) a2 -= 2*3.14159265358979323846;
187 UNSUPPORTED("6jidndwc0ed5nlh89cj2ogu5b"); // theta = a1 - a2;
188 UNSUPPORTED("c9ot8wph8hmrzkm7yuzh7gt8s"); // while (theta > 2*3.14159265358979323846) theta -= 2*3.14159265358979323846;
189 UNSUPPORTED("eaugkmo55m6kizyb3gzzzgsr6"); // theta /= (20-1);
190 UNSUPPORTED("8moo8yolmkvvvfll1yxyb984o"); // for (i = 1; i < 20; i++)
191 UNSUPPORTED("7w1xen1rv3ve6ogqu7z1o825y"); // addto (p, x+r*cos(a1-i*theta), y+r*sin(a1-i*theta));
192 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
193
194 throw new UnsupportedOperationException();
195 }
196
197
198
199
200 //3 dw4giwrdkygo30ux7h9vqoni5
201 // static double myatan (double y, double x)
202 public static Object myatan(Object... arg) {
203 UNSUPPORTED("51twbyur0a3vygc4lht7f3yal"); // static double myatan (double y, double x)
204 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
205 UNSUPPORTED("9gol5nm38e942ve1ebl1cjtlv"); // double v;
206 UNSUPPORTED("1z65rccjdrspxqoaj9qq5gs3q"); // if ((x == 0) && (y == 0))
207 UNSUPPORTED("c9ckhc8veujmwcw0ar3u3zld4"); // return 0;
208 UNSUPPORTED("1nyzbeonram6636b1w955bypn"); // else {
209 UNSUPPORTED("adiklywz2pj2zlyyhhy8y244r"); // v = atan2 (y, x);
210 UNSUPPORTED("7jmcb4vgz4sib476up6ourg67"); // if (v >= 0) return v;
211 UNSUPPORTED("9xbltmwvt8lkbkt3dyvsyyrnc"); // else return (v + 2*3.14159265358979323846);
212 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
213 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
214
215 throw new UnsupportedOperationException();
216 }
217
218
219
220
221 //3 apxlatl0g1hcl36pozo9rbijz
222 // static double mymod (double original, double modulus)
223 public static Object mymod(Object... arg) {
224 UNSUPPORTED("4lzz822wr9xogvbkxwq2p4djj"); // static double mymod (double original, double modulus)
225 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
226 UNSUPPORTED("9gol5nm38e942ve1ebl1cjtlv"); // double v;
227 UNSUPPORTED("7xrcngwvajpif9r69m54w64a2"); // if ((original < 0) || (original >= modulus)) {
228 UNSUPPORTED("6arshdtqlpzcb2x8apa4d2uvk"); // v = -floor(original/modulus);
229 UNSUPPORTED("9tazzesrwxgrdbwb9mkvvptt6"); // return ((v*modulus) + original);
230 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
231 UNSUPPORTED("ay7iouy5jqpu5z9qk1zp0duie"); // return original;
232 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
233
234 throw new UnsupportedOperationException();
235 }
236
237
238
239
240 //3 3vkg7w3ke5ee59segqqkwid17
241 // static vararr_t* newArr (void)
242 public static Object newArr(Object... arg) {
243 UNSUPPORTED("6oi8ug46evw6d3gxiiqkxwu30"); // static vararr_t*
244 UNSUPPORTED("4vfh8nqxhykygdmg0ifzha82l"); // newArr (void)
245 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
246 UNSUPPORTED("417k87o0rksmn0vw9xy6t0rfv"); // vararr_t* arr = (vararr_t*)zmalloc(sizeof(vararr_t));
247 UNSUPPORTED("ar8weg5zgsytfffj61bksv2nt"); // arr->cnt = 0;
248 UNSUPPORTED("3nl7c4g3pzkgqswnj7h45v3ev"); // arr->sz = 2000;
249 UNSUPPORTED("bfzoantmopqk4byg4d7kmi770"); // arr->pts = (pathpoint*)zmalloc((2000)*sizeof(pathpoint));
250 UNSUPPORTED("ccsfhshi4ig5z5la1ju1x9cnc"); // return arr;
251 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
252
253 throw new UnsupportedOperationException();
254 }
255
256
257
258
259 //3 emanczpl0fr5cs8t1tgvka2ua
260 // static void insertArr (vararr_t* arr, pointf p, double l)
261 public static Object insertArr(Object... arg) {
262 UNSUPPORTED("e2z2o5ybnr5tgpkt8ty7hwan1"); // static void
263 UNSUPPORTED("8v67nvmyz4yxnupb82f54jk9g"); // insertArr (vararr_t* arr, pointf p, double l)
264 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
265 UNSUPPORTED("kahpad7jk1hodmjj808l7dxq"); // if (arr->cnt >= arr->sz) {
266 UNSUPPORTED("7z6erqvmbkm9sl7i89ix3t8vr"); // arr->sz *= 2;
267 UNSUPPORTED("99tebe4imvyc4desymrfhljd7"); // arr->pts = RALLOC(arr->sz,arr->pts,pathpoint);
268 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
269 UNSUPPORTED("br1mk0jed98vu2xl7x2nbcm7s"); // arr->pts[arr->cnt].x = p.x;
270 UNSUPPORTED("b1mytlmkf0s950zn7gs74k4br"); // arr->pts[arr->cnt].y = p.y;
271 UNSUPPORTED("4f7855jr9oovy4nov96abulma"); // arr->pts[arr->cnt++].lengthsofar = l;
272 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
273
274 throw new UnsupportedOperationException();
275 }
276
277
278
279
280 //3 djrl04e0hnm9z4c9mygp3kdjn
281 // static void fixArr (vararr_t* arr)
282 public static Object fixArr(Object... arg) {
283 UNSUPPORTED("e2z2o5ybnr5tgpkt8ty7hwan1"); // static void
284 UNSUPPORTED("82xx4q98200g4y3mpp3pal2li"); // fixArr (vararr_t* arr)
285 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
286 UNSUPPORTED("1dn0v5t5wbzicbbr44xf4fr0t"); // if (arr->sz > arr->cnt)
287 UNSUPPORTED("3vugzps0w4i557rlkmjan8p29"); // arr->pts = RALLOC(arr->cnt,arr->pts,pathpoint);
288 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
289
290 throw new UnsupportedOperationException();
291 }
292
293
294
295
296 //3 dkncnskx3m00uje3cgv41ijdt
297 // static void freeArr (vararr_t* arr)
298 public static Object freeArr(Object... arg) {
299 UNSUPPORTED("e2z2o5ybnr5tgpkt8ty7hwan1"); // static void
300 UNSUPPORTED("54u81fh95rxlpha3qyk9ehb7c"); // freeArr (vararr_t* arr)
301 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
302 UNSUPPORTED("arje9cheuqn10vynbk56ukz3e"); // free (arr->pts);
303 UNSUPPORTED("amydox92cqc7sp8tpkooy0l04"); // free (arr);
304 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
305
306 throw new UnsupportedOperationException();
307 }
308
309
310
311
312 //3 2vfkvxso8rdk46al15j439ju
313 // static double l2dist (pointf p0, pointf p1)
314 public static Object l2dist(Object... arg) {
315 UNSUPPORTED("1pz4c8sn3juc1g2fhezjnpmd2"); // static double l2dist (pointf p0, pointf p1)
316 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
317 UNSUPPORTED("7eagovsf8qdkhnna5ttw91v6f"); // double delx = p0.x - p1.x;
318 UNSUPPORTED("63axa60soz954naurv3tp4093"); // double dely = p0.y - p1.y;
319 UNSUPPORTED("45ran48pxafslteww0nkr0oy9"); // return sqrt(delx*delx + dely*dely);
320 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
321
322 throw new UnsupportedOperationException();
323 }
324
325
326
327
328 //3 e8z50dab6k0lk9eru6tpkypvs
329 // static vararr_t* pathtolines (bezier* bez, double initwid)
330 public static Object pathtolines(Object... arg) {
331 UNSUPPORTED("4co20l0j4xlm1zv7bjwz9elqo"); // static vararr_t* pathtolines (bezier* bez, double initwid)
332 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
333 UNSUPPORTED("e94cztctbqq9ucd7n67ebdges"); // int i, j, step;
334 UNSUPPORTED("7qswbkiwqvj5o23nxscn2xzu3"); // double seglen, linelen = 0;
335 UNSUPPORTED("35ncr2n01679jn6xdx7lovbxg"); // vararr_t* arr = newArr();
336 UNSUPPORTED("4rrhn7tnwemc4ar7wq0j96kev"); // pointf p0, p1, V[4];
337 UNSUPPORTED("amd6cyu1q1eots437g00w8phx"); // int n = bez->size;
338 UNSUPPORTED("8ifezqgmvyo8z6wf0qcatnztd"); // pointf* A = bez->list;
339 UNSUPPORTED("eia2p2xwqw8mqn9dfliiurrr7"); // insertArr (arr, A[0], 0);
340 UNSUPPORTED("5mspz8cilygav1eq04djl7dlf"); // V[3] = A[0];
341 UNSUPPORTED("3s0blwgctqa0ygs872bnu4kye"); // for (i = 0; i + 3 < n; i += 3) {
342 UNSUPPORTED("76skw6ffgj23bchkntqtrfcq7"); // V[0] = V[3];
343 UNSUPPORTED("6lhc8cdnbz2nu3rhz57v5dmc1"); // for (j = 1; j <= 3; j++)
344 UNSUPPORTED("37fsp14ok0vo02898upd62lqp"); // V[j] = A[i + j];
345 UNSUPPORTED("93nos5j5xytqabt45wbg4czil"); // p0 = V[0];
346 UNSUPPORTED("335n0b4zult6fp5ic3mco2xkw"); // for (step = 1; step <= 20; step++) {
347 UNSUPPORTED("3rli8h9x69lwpiayu0y0gcaoo"); // p1 = Bezier(V, 3, (double) step / 20, (void *)0, (void *)0);
348 UNSUPPORTED("bxa5icduvxvktsbhy894m25nv"); // seglen = l2dist(p0, p1);
349 UNSUPPORTED("ci98ubpynj2u3wr63q30b8ddv"); // /* If initwid is large, this may never happen, so turn off. I assume this is to prevent
350 UNSUPPORTED("197sucveb3ncj66y77a2lmirt"); // * too man points or too small a movement. Perhaps a better test can be made, but for now
351 UNSUPPORTED("6aqlkwuxiu1jk3hcwywqtptfx"); // * we turn it off.
352 UNSUPPORTED("20m1lc1moer8x00tx9ceto0iw"); // */
353 UNSUPPORTED("ad24rtknwvng9ifrqti3z182a"); // /* if (seglen > initwid/10) { */
354 UNSUPPORTED("at53x9272ok7viedn52tfmxs9"); // linelen += seglen;
355 UNSUPPORTED("avlslqeh4lqlpuft9gvcskcgl"); // insertArr (arr, p1, linelen);
356 UNSUPPORTED("34uyo5h2d2cr1gy61yie7txem"); // /* } */
357 UNSUPPORTED("c5vgyvjtvlhaldki4knu2mv25"); // p0 = p1;
358 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
359 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
360 UNSUPPORTED("cqyo311cnd0n23sijmv5k82l1"); // fixArr (arr);
361 UNSUPPORTED("a1fj3h2aqltc9pidvjej8cxlf"); // /* printArr (arr, stderr); */
362 UNSUPPORTED("ccsfhshi4ig5z5la1ju1x9cnc"); // return arr;
363 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
364
365 throw new UnsupportedOperationException();
366 }
367
368
369
370
371 //3 5tozuy492rmd5etcp98dlqt1y
372 // static void drawbevel(double x, double y, double lineout, int forward, double dir, double dir2, int linejoin, stroke_t* p)
373 public static Object drawbevel(Object... arg) {
374 UNSUPPORTED("2qy6fcr5q2i7bkdxvzzwrz570"); // static void drawbevel(double x, double y, double lineout, int forward, double dir, double dir2, int linejoin, stroke_t* p)
375 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
376 UNSUPPORTED("5kph4zx0cyuidmd7x1cloedsi"); // double a, a1, a2;
377 UNSUPPORTED("d10oqu9tn28o7bzq83fvol955"); // if (forward) {
378 UNSUPPORTED("doysnlmgd1gow0os5wr5dxr0h"); // a1 = dir;
379 UNSUPPORTED("26ao9suwlr5unltg4xdoi9lj8"); // a2 = dir2;
380 UNSUPPORTED("c07up7zvrnu2vhzy6d7zcu94g"); // } else {
381 UNSUPPORTED("7vwlht2qk7zqu6kifv69i7bt5"); // a1 = dir2;
382 UNSUPPORTED("1r5bjzpwx8a3ne8vmn2nxcu52"); // a2 = dir;
383 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
384 UNSUPPORTED("6iax8tt6lrdck8goujhk00hs5"); // if (linejoin == 1) {
385 UNSUPPORTED("4ecnnr5gsgd13e2t8959l3t4f"); // a = a1 - a2;
386 UNSUPPORTED("3cwtamgprrppba01yard7r24n"); // if (a <= (3.14159265358979323846*(0.1)/180.0)) a += (3.14159265358979323846*(360)/180.0);
387 UNSUPPORTED("3eqjj4tj5gjh8o4bot8pslbjt"); // if (a < (3.14159265358979323846*(180)/180.0)) {
388 UNSUPPORTED("6f4cxd2owe51qjtpf2g2qgqa6"); // a1 = a + a2;
389 UNSUPPORTED("2w6rakjxhdggmu2moctdxufk7"); // arcn (p,x,y,lineout,a1,a2);
390 UNSUPPORTED("7yhr8hn3r6wohafwxrt85b2j2"); // } else {
391 UNSUPPORTED("eukl7uoeeewpjnm0z5fnpne38"); // addto(p,x + lineout*cos(a2),x + lineout*sin(a2));
392 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
393 UNSUPPORTED("c07up7zvrnu2vhzy6d7zcu94g"); // } else {
394 UNSUPPORTED("90zyfikk81hiajwc2bh8qzemz"); // addto(p,x + lineout*cos(a2),x + lineout*sin(a2));
395 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
396 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
397
398 throw new UnsupportedOperationException();
399 }
400
401
402
403
404 //3 67jgk3x4cvr5g5sjkktz9hv3p
405 // stroke_t* taper (bezier* bez, radfunc_t radfunc, double initwid, int linejoin, int linecap)
406 public static Object taper(Object... arg) {
407 UNSUPPORTED("92uf8ujxvbmb009ow0y2ylc28"); // stroke_t* taper (bezier* bez, radfunc_t radfunc, double initwid, int linejoin, int linecap)
408 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
409 UNSUPPORTED("ebpurc5lht6x0pe8utbovvtkj"); // int i, l, n;
410 UNSUPPORTED("23t8ciiwx0m0urylqh0rdj45f"); // int pathcount, bevel;
411 UNSUPPORTED("aap39s7rrs42rpqb2wnwm1wac"); // double direction=0, direction_2=0;
412 UNSUPPORTED("9m9xu2pqfgvlgbaera9r5bslu"); // vararr_t* arr = pathtolines (bez, initwid);
413 UNSUPPORTED("3zu7p7qd5hfut9413f9nua2hp"); // pathpoint* pathpoints;
414 UNSUPPORTED("8400pubdu8b37sik81zlon17q"); // pathpoint cur_point, last_point, next_point;
415 UNSUPPORTED("e2l5uh8yuami4r4nsytajt49e"); // double x=0, y=0, dist;
416 UNSUPPORTED("z9q8a6k36ts2dcgz6b1uro9f"); // double nx, ny, ndir;
417 UNSUPPORTED("8rityqi74uqjkie4xszf2cz9s"); // double lx, ly, ldir;
418 UNSUPPORTED("exc47riargr44o24fo7dq38pf"); // double lineout=0, linerad=0, linelen=0;
419 UNSUPPORTED("dim9rt5u8affmln2pricl9c4z"); // double theta, phi;
420 UNSUPPORTED("bcjf9eyzp0bx4ace27dfpdpkr"); // stroke_t* p;
421 UNSUPPORTED("d43stoip4tcodq33ekkdc2o2d"); // pathcount = arr->cnt;
422 UNSUPPORTED("3ahpl1jbl65q1xb0s2y138jat"); // pathpoints = arr->pts;
423 UNSUPPORTED("78l26kaqv5ovbmh3w047sqyk4"); // linelen = pathpoints[pathcount-1].lengthsofar;
424 UNSUPPORTED("9uu6i69mrs8oofgu1thnoeh6s"); // /* determine miter and bevel points and directions */
425 UNSUPPORTED("9p5eqhc57q744jswt4xn49de5"); // for (i = 0; i < pathcount; i++) {
426 UNSUPPORTED("ayjwp7w7mt18negnhgj0sbv59"); // l = mymod(i-1,pathcount);
427 UNSUPPORTED("32kv4nbdjmjk22m6e7utdtur6"); // n = mymod(i+1,pathcount);
428 UNSUPPORTED("6sepicym4lwb144speybi5pdm"); // cur_point = pathpoints[i];
429 UNSUPPORTED("904onk81tz0s5sep0j6awgdpb"); // x = cur_point.x;
430 UNSUPPORTED("agtncoxbpms9wwt2ie97e47g4"); // y = cur_point.y;
431 UNSUPPORTED("1tbip84gxxj24fbdv8razb8ro"); // dist = cur_point.lengthsofar;
432 UNSUPPORTED("dyj2zbknry7a1x9ebao54p2px"); // next_point = pathpoints[n];
433 UNSUPPORTED("4q9nd7a8vv14sz57dz10eti4i"); // nx = next_point.x;
434 UNSUPPORTED("34m4u9clc8vse172ui6o7luyc"); // ny = next_point.y;
435 UNSUPPORTED("el8hvvq8ozxy51a09pf45t6lm"); // ndir = myatan (ny-y, nx-x);
436 UNSUPPORTED("bp3rn8j3uu5wtuh39yht2wahr"); // last_point = pathpoints[l];
437 UNSUPPORTED("31sunwg5bgedjub9bgaudnn2w"); // lx = last_point.x;
438 UNSUPPORTED("byfvt2pin8q8aaf4dw9kmo4f7"); // ly = last_point.y;
439 UNSUPPORTED("21ekhwbbxmjwb10twls4jflzo"); // ldir = myatan (ly-y, lx-x);
440 UNSUPPORTED("939fjejhngctxdmxbb5koezq6"); // bevel = 0;
441 UNSUPPORTED("75eizgg2kuilkz07e5n9331yb"); // direction_2 = 0;
442 UNSUPPORTED("9ibtpydrwwm9mu7z4303ioce6"); // /* effective line radius at this point */
443 UNSUPPORTED("3b0kp7ld95slxpcdcfrm9g3f9"); // linerad = radfunc(dist, linelen, initwid);
444 UNSUPPORTED("17tfbs98ueshh3kxz0go6y28e"); // if ((i == 0) || (i == pathcount-1)) {
445 UNSUPPORTED("c8k6abykr9kofwd7w2eh7wets"); // lineout = linerad;
446 UNSUPPORTED("1zc3rhfsp70axt1st8ezyeucz"); // if (i == 0) {
447 UNSUPPORTED("xs2p6fe1nq08icjrthobqees"); // direction = ndir + (3.14159265358979323846*(90)/180.0);
448 UNSUPPORTED("6jhf2qmn6za8kr9w3auf58zfz"); // if (linecap == 2) {
449 UNSUPPORTED("7gc6ece8x7l8lvlz5qkpw4jzk"); // x -= cos(ndir)*lineout;
450 UNSUPPORTED("4oclmr8htzwxbgvwqgpotjkm0"); // y -= sin(ndir)*lineout;
451 UNSUPPORTED("6eq5kf0bj692bokt0bixy1ixh"); // }
452 UNSUPPORTED("175pyfe8j8mbhdwvrbx3gmew9"); // } else {
453 UNSUPPORTED("197wgta2k2gjicruujcxk2pxw"); // direction = ldir - (3.14159265358979323846*(90)/180.0);
454 UNSUPPORTED("6jhf2qmn6za8kr9w3auf58zfz"); // if (linecap == 2) {
455 UNSUPPORTED("52z8fu32uav0121o0kglvopfx"); // x -= cos(ldir)*lineout;
456 UNSUPPORTED("740qs0z13dreer6os7d1lx38v"); // y -= sin(ldir)*lineout;
457 UNSUPPORTED("6eq5kf0bj692bokt0bixy1ixh"); // }
458 UNSUPPORTED("6t98dcecgbvbvtpycwiq2ynnj"); // }
459 UNSUPPORTED("ap3owlr7o0jc1ahvdhqcjdqiq"); // direction_2 = direction;
460 UNSUPPORTED("7yhr8hn3r6wohafwxrt85b2j2"); // } else {
461 UNSUPPORTED("3wc8w7ht9a70rdtiofq8deau6"); // theta = ndir-ldir;
462 UNSUPPORTED("bvc7byx1cwqmqnclfhzwox2k1"); // if (theta < 0) {
463 UNSUPPORTED("20oornlkswqxxeufgzx9ax2i3"); // theta += (3.14159265358979323846*(360)/180.0);
464 UNSUPPORTED("6t98dcecgbvbvtpycwiq2ynnj"); // }
465 UNSUPPORTED("e7t2i7fgzowrk1ntx7cwh49id"); // phi = (3.14159265358979323846*(90)/180.0)-(theta/2);
466 UNSUPPORTED("5dvmkcy9yqb2cc6rgmduj5b1c"); // /* actual distance to junction point */
467 UNSUPPORTED("8upqw3s8k892ep29pvt7cbki"); // if (cos(phi) == 0) {
468 UNSUPPORTED("937cpmx6ugu8zzrr5aoylcqs6"); // lineout = 0;
469 UNSUPPORTED("175pyfe8j8mbhdwvrbx3gmew9"); // } else {
470 UNSUPPORTED("9c90i4xl89nygyndfayv4s29m"); // lineout = linerad/(cos(phi));
471 UNSUPPORTED("6t98dcecgbvbvtpycwiq2ynnj"); // }
472 UNSUPPORTED("c3j9s1x9zzozcg3mbp65k5itk"); // /* direction to junction point */
473 UNSUPPORTED("252vewuhexhnz6vj97f65w9zx"); // direction = ndir+(3.14159265358979323846*(90)/180.0)+phi;
474 UNSUPPORTED("eobcnlcqwz1dximq5qhsa3i9s"); // if ((0 != linejoin) || (lineout > currentmiterlimit * linerad)) {
475 UNSUPPORTED("31r3m1070akd0cf4vzq3qfaro"); // bevel = (!(0));
476 UNSUPPORTED("67w6qhlogp4d7uf18s35pj3wy"); // lineout = linerad;
477 UNSUPPORTED("42maeq9w00m591r12lzegzu8y"); // direction = mymod(ldir-(3.14159265358979323846*(90)/180.0),(3.14159265358979323846*(360)/180.0));
478 UNSUPPORTED("avrmbklsobjff22asjbr5tgdf"); // direction_2 = mymod(ndir+(3.14159265358979323846*(90)/180.0),(3.14159265358979323846*(360)/180.0));
479 UNSUPPORTED("asm15sr4a6kydzpud2plsmxs0"); // if (i == pathcount-1) {
480 UNSUPPORTED("eycx11cl9aeikjk5ekwb81go3"); // bevel = 0;
481 UNSUPPORTED("6eq5kf0bj692bokt0bixy1ixh"); // }
482 UNSUPPORTED("175pyfe8j8mbhdwvrbx3gmew9"); // } else {
483 UNSUPPORTED("dax7iiwvwzxlxymfmj1tjdihy"); // direction_2 = direction;
484 UNSUPPORTED("6t98dcecgbvbvtpycwiq2ynnj"); // }
485 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
486 UNSUPPORTED("2q8u8grbi0h42y635qyr9v3qc"); // pathpoints[i].x = x;
487 UNSUPPORTED("bhlm48hrfr2mg0if526u3iguo"); // pathpoints[i].y = y;
488 UNSUPPORTED("957rrx269yqwuiikvpvy3ffpm"); // pathpoints[i].lengthsofar = dist;
489 UNSUPPORTED("3helgp0v0pqd09d8ax7jah2mb"); // pathpoints[i].type = 'l';
490 UNSUPPORTED("3y6rmj5f7rvq2ebwgnvd1fgjq"); // pathpoints[i].dir = direction;
491 UNSUPPORTED("1dvyxwcwbtzahsn4h6caxv445"); // pathpoints[i].lout = lineout;
492 UNSUPPORTED("mmiievlimn4w1lptlh3llroz"); // pathpoints[i].bevel = bevel;
493 UNSUPPORTED("er888lbd8xz64adkkzbqyfwh1"); // pathpoints[i].dir2 = direction_2;
494 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
495 UNSUPPORTED("ckcfut3hsl9z3mkr48i07xreq"); // /* draw line */
496 UNSUPPORTED("9r6b4bedc1rhpyql4jb2csd4n"); // p = (stroke_t*)zmalloc(sizeof(stroke_t));
497 UNSUPPORTED("70i20pyvm032opmt0lw7ygegp"); // /* side 1 */
498 UNSUPPORTED("9p5eqhc57q744jswt4xn49de5"); // for (i = 0; i < pathcount; i++) {
499 UNSUPPORTED("6sepicym4lwb144speybi5pdm"); // cur_point = pathpoints[i];
500 UNSUPPORTED("904onk81tz0s5sep0j6awgdpb"); // x = cur_point.x;
501 UNSUPPORTED("agtncoxbpms9wwt2ie97e47g4"); // y = cur_point.y;
502 UNSUPPORTED("3u4hay46briisll392jdya23v"); // direction = cur_point.dir;
503 UNSUPPORTED("1uct0gb7zqtj7385nbdnzyj0c"); // lineout = cur_point.lout;
504 UNSUPPORTED("d9xs9uakpataixjavhuod06ig"); // bevel = cur_point.bevel;
505 UNSUPPORTED("bf8qe3co9ovp0li3u7k7pqr9i"); // direction_2 = cur_point.dir2;
506 UNSUPPORTED("9498bdr7ojnwbc5q4bfmdqha9"); // if (i == 0) {
507 UNSUPPORTED("8qzin254lieocy18s2q55bb07"); // addto(p,x+cos(direction)*lineout,y+sin(direction)*lineout);
508 UNSUPPORTED("7yhr8hn3r6wohafwxrt85b2j2"); // } else {
509 UNSUPPORTED("8qzin254lieocy18s2q55bb07"); // addto(p,x+cos(direction)*lineout,y+sin(direction)*lineout);
510 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
511 UNSUPPORTED("euyvq7b75qnuktu6n6n1hvj1i"); // if (bevel) {
512 UNSUPPORTED("bzgn4n0vstnr0nc3pqwub40eo"); // drawbevel (x, y, lineout, (!(0)), direction, direction_2, linejoin, p);
513 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
514 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
515 UNSUPPORTED("a4jnqx1pmpp8rz85lpaqyfnj9"); // /* end circle as needed */
516 UNSUPPORTED("7ibh2c9hlo51dzs6o9tk8xhh0"); // if (linecap == 1) {
517 UNSUPPORTED("a8b7151pm774jksu8gm13tsa0"); // arcn (p, x,y,lineout,direction,direction+(3.14159265358979323846*(180)/180.0));
518 UNSUPPORTED("c07up7zvrnu2vhzy6d7zcu94g"); // } else {
519 UNSUPPORTED("8ckgm7yw5o3kj12au3908fqin"); // direction += (3.14159265358979323846*(180)/180.0);
520 UNSUPPORTED("385y1xwu0kh9i0679xwfgdhfi"); // addto(p,x+cos(direction)*lineout,y+sin(direction)*lineout);
521 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
522 UNSUPPORTED("1odd6xfcmpix4iwcbi07a3yet"); // /* side 2 */
523 UNSUPPORTED("9sytul5918tuv13gjz3sxy4x3"); // for (i = pathcount-2; i >= 0; i--) {
524 UNSUPPORTED("6sepicym4lwb144speybi5pdm"); // cur_point = pathpoints[i];
525 UNSUPPORTED("904onk81tz0s5sep0j6awgdpb"); // x = cur_point.x;
526 UNSUPPORTED("agtncoxbpms9wwt2ie97e47g4"); // y = cur_point.y;
527 UNSUPPORTED("8uvc4rfbx29lnuzfihxx9p2td"); // direction = cur_point.dir + (3.14159265358979323846*(180)/180.0);
528 UNSUPPORTED("1uct0gb7zqtj7385nbdnzyj0c"); // lineout = cur_point.lout;
529 UNSUPPORTED("d9xs9uakpataixjavhuod06ig"); // bevel = cur_point.bevel;
530 UNSUPPORTED("g0kdlqos9c7lovlj90k934dl"); // direction_2 = cur_point.dir2 + (3.14159265358979323846*(180)/180.0);
531 UNSUPPORTED("z8wmez9u4a021s05d5cxi6wa"); // addto(p,x+cos(direction_2)*lineout,y+sin(direction_2)*lineout);
532 UNSUPPORTED("ezt2dhrkjlk2egdubwm3lhef7"); // if (bevel) {
533 UNSUPPORTED("66s1i3eyqfiswvzoblil8b24c"); // drawbevel (x, y, lineout, 0, direction, direction_2, linejoin, p);
534 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
535 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
536 UNSUPPORTED("2bichl6gosxd9wgzvd6uklrf5"); // /* start circle if needed */
537 UNSUPPORTED("7ibh2c9hlo51dzs6o9tk8xhh0"); // if (linecap == 1) {
538 UNSUPPORTED("a8b7151pm774jksu8gm13tsa0"); // arcn (p, x,y,lineout,direction,direction+(3.14159265358979323846*(180)/180.0));
539 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
540 UNSUPPORTED("f2o2l2qwk02ukzyk8zpg7ti5k"); // /* closepath (p); */
541 UNSUPPORTED("aqhe2lewlygs1royfxfz4cso5"); // freeArr (arr);
542 UNSUPPORTED("91xduilalb406jjyw2g1i07th"); // return p;
543 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
544
545 throw new UnsupportedOperationException();
546 }
547
548
549
550
551 //3 5p2ry36pn9erx76ct8agwj29j
552 // static double halffunc (double curlen, double totallen, double initwid)
553 public static Object halffunc(Object... arg) {
554 UNSUPPORTED("9tja24cimn4bxxvgebqx1p7g6"); // static double halffunc (double curlen, double totallen, double initwid)
555 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
556 UNSUPPORTED("7w1a8rqs29lelmnia96oa58f9"); // return ((1 - (curlen/totallen))*initwid/2.0);
557 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
558
559 throw new UnsupportedOperationException();
560 }
561
562
563
564
565 //3 9atumni48eq11oedwpruqobkj
566 // stroke_t* taper0 (bezier* bez, double initwid)
567 public static Object taper0(Object... arg) {
568 UNSUPPORTED("8flvjq0yy9wk9rlpxmqius1l1"); // stroke_t* taper0 (bezier* bez, double initwid)
569 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
570 UNSUPPORTED("84s227sd2ewmv1s2g5fisnfux"); // return taper(bez, halffunc, initwid, 0, 0);
571 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
572
573 throw new UnsupportedOperationException();
574 }
575
576
577 }