Debian Codegraph @

src/gen/lib/common/arrows__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 gen.lib.cgraph.attr__c.agxget;
48 import static gen.lib.cgraph.graph__c.agisdirected;
49 import static gen.lib.cgraph.obj__c.agraphof;
50 import static gen.lib.common.splines__c.bezier_clip;
51 import static gen.lib.common.utils__c.late_double;
52 import static smetana.core.JUtils.LOG2;
53 import static smetana.core.JUtils.function;
54 import static smetana.core.JUtilsDebug.ENTERING;
55 import static smetana.core.JUtilsDebug.LEAVING;
56 import static smetana.core.Macro.DIST2;
57 import static smetana.core.Macro.ED_conc_opp_flag;
58 import static smetana.core.Macro.NOT;
59 import static smetana.core.Macro.UNSUPPORTED;
60 import h.ST_Agedge_s;
61 import h.ST_arrowdir_t;
62 import h.ST_arrowname_t;
63 import h.ST_bezier;
64 import h.ST_inside_t;
65 import h.ST_pointf;
66 import smetana.core.CString;
67 import smetana.core.MutableDouble;
68 import smetana.core.Z;
69
70 public class arrows__c {
71 //1 2digov3edok6d5srhgtlmrycs
72 // extern lt_symlist_t lt_preloaded_symbols[]
73
74
75 //1 baedz5i9est5csw3epz3cv7z
76 // typedef Ppoly_t Ppolyline_t
77
78
79 //1 9k44uhd5foylaeoekf3llonjq
80 // extern Dtmethod_t* Dtset
81
82
83 //1 1ahfywsmzcpcig2oxm7pt9ihj
84 // extern Dtmethod_t* Dtbag
85
86
87 //1 anhghfj3k7dmkudy2n7rvt31v
88 // extern Dtmethod_t* Dtoset
89
90
91 //1 5l6oj1ux946zjwvir94ykejbc
92 // extern Dtmethod_t* Dtobag
93
94
95 //1 2wtf222ak6cui8cfjnw6w377z
96 // extern Dtmethod_t* Dtlist
97
98
99 //1 d1s1s6ibtcsmst88e3057u9r7
100 // extern Dtmethod_t* Dtstack
101
102
103 //1 axa7mflo824p6fspjn1rdk0mt
104 // extern Dtmethod_t* Dtqueue
105
106
107 //1 ega812utobm4xx9oa9w9ayij6
108 // extern Dtmethod_t* Dtdeque
109
110
111 //1 cyfr996ur43045jv1tjbelzmj
112 // extern Dtmethod_t* Dtorder
113
114
115 //1 wlofoiftbjgrrabzb2brkycg
116 // extern Dtmethod_t* Dttree
117
118
119 //1 12bds94t7voj7ulwpcvgf6agr
120 // extern Dtmethod_t* Dthash
121
122
123 //1 9lqknzty480cy7zsubmabkk8h
124 // extern Dtmethod_t _Dttree
125
126
127 //1 bvn6zkbcp8vjdhkccqo1xrkrb
128 // extern Dtmethod_t _Dthash
129
130
131 //1 9lidhtd6nsmmv3e7vjv9e10gw
132 // extern Dtmethod_t _Dtlist
133
134
135 //1 34ujfamjxo7xn89u90oh2k6f8
136 // extern Dtmethod_t _Dtqueue
137
138
139 //1 3jy4aceckzkdv950h89p4wjc8
140 // extern Dtmethod_t _Dtstack
141
142
143 //1 8dfqgf3u1v830qzcjqh9o8ha7
144 // extern Agmemdisc_t AgMemDisc
145
146
147 //1 18k2oh2t6llfsdc5x0wlcnby8
148 // extern Agiddisc_t AgIdDisc
149
150
151 //1 a4r7hi80gdxtsv4hdoqpyiivn
152 // extern Agiodisc_t AgIoDisc
153
154
155 //1 bnzt5syjb7mgeru19114vd6xx
156 // extern Agdisc_t AgDefaultDisc
157
158
159 //1 35y2gbegsdjilegaribes00mg
160 // extern Agdesc_t Agdirected, Agstrictdirected, Agundirected, Agstrictundirected
161
162
163 //1 c2rygslq6bcuka3awmvy2b3ow
164 // typedef Agsubnode_t Agnoderef_t
165
166
167 //1 xam6yv0dcsx57dtg44igpbzn
168 // typedef Dtlink_t Agedgeref_t
169
170
171 //1 nye6dsi1twkbddwo9iffca1j
172 // extern char *Version
173
174
175 //1 65mu6k7h7lb7bx14jpiw7iyxr
176 // extern char **Files
177
178
179 //1 2rpjdzsdyrvomf00zcs3u3dyn
180 // extern const char **Lib
181
182
183 //1 6d2f111lntd2rsdt4gswh5909
184 // extern char *CmdName
185
186
187 //1 a0ltq04fpeg83soa05a2fkwb2
188 // extern char *specificFlags
189
190
191 //1 1uv30qeqq2jh6uznlr4dziv0y
192 // extern char *specificItems
193
194
195 //1 7i4hkvngxe3x7lmg5h6b3t9g3
196 // extern char *Gvfilepath
197
198
199 //1 9jp96pa73kseya3w6sulxzok6
200 // extern char *Gvimagepath
201
202
203 //1 40ylumfu7mrvawwf4v2asvtwk
204 // extern unsigned char Verbose
205
206
207 //1 93st8awjy1z0h07n28qycbaka
208 // extern unsigned char Reduce
209
210
211 //1 f2vs67ts992erf8onwfglurzp
212 // extern int MemTest
213
214
215 //1 c6f8whijgjwwagjigmxlwz3gb
216 // extern char *HTTPServerEnVar
217
218
219 //1 cp4hzj7p87m7arw776d3bt7aj
220 // extern char *Output_file_name
221
222
223 //1 a3rqagofsgraie6mx0krzkgsy
224 // extern int graphviz_errors
225
226
227 //1 5up05203r4kxvjn1m4njcgq5x
228 // extern int Nop
229
230
231 //1 umig46cco431x14b3kosde2t
232 // extern double PSinputscale
233
234
235 //1 52bj6v8fqz39khasobljfukk9
236 // extern int Syntax_errors
237
238
239 //1 9ekf2ina8fsjj6y6i0an6somj
240 // extern int Show_cnt
241
242
243 //1 38di5qi3nkxkq65onyvconk3r
244 // extern char** Show_boxes
245
246
247 //1 6ri6iu712m8mpc7t2670etpcw
248 // extern int CL_type
249
250
251 //1 bomxiw3gy0cgd1ydqtek7fpxr
252 // extern unsigned char Concentrate
253
254
255 //1 cqy3gqgcq8empdrbnrhn84058
256 // extern double Epsilon
257
258
259 //1 64slegfoouqeg0rmbyjrm8wgr
260 // extern int MaxIter
261
262
263 //1 88wdinpnmfs4mab4aw62yb0bg
264 // extern int Ndim
265
266
267 //1 8bbad3ogcelqnnvo5br5s05gq
268 // extern int State
269
270
271 //1 17rnd8q45zclfn68qqst2vxxn
272 // extern int EdgeLabelsDone
273
274
275 //1 ymx1z4s8cznjifl2d9f9m8jr
276 // extern double Initial_dist
277
278
279 //1 a33bgl0c3uqb3trx419qulj1x
280 // extern double Damping
281
282
283 //1 d9lvrpjg1r0ojv40pod1xwk8n
284 // extern int Y_invert
285
286
287 //1 71efkfs77q5tq9ex6y0f4kanh
288 // extern int GvExitOnUsage
289
290
291 //1 4xy2dkdkv0acs2ue9eca8hh2e
292 // extern Agsym_t *G_activepencolor, *G_activefillcolor, *G_selectedpencolor, *G_selectedfillcolor, *G_visitedpencolor, *G_visitedfillcolor, *G_deletedpencolor, *G_deletedfillcolor, *G_ordering, *G_peripheries, *G_penwidth, *G_gradientangle, *G_margin
293
294
295 //1 9js5gxgzr74eakgtfhnbws3t9
296 // extern Agsym_t *N_height, *N_width, *N_shape, *N_color, *N_fillcolor, *N_activepencolor, *N_activefillcolor, *N_selectedpencolor, *N_selectedfillcolor, *N_visitedpencolor, *N_visitedfillcolor, *N_deletedpencolor, *N_deletedfillcolor, *N_fontsize, *N_fontname, *N_fontcolor, *N_margin, *N_label, *N_xlabel, *N_nojustify, *N_style, *N_showboxes, *N_sides, *N_peripheries, *N_ordering, *N_orientation, *N_skew, *N_distortion, *N_fixed, *N_imagescale, *N_layer, *N_group, *N_comment, *N_vertices, *N_z, *N_penwidth, *N_gradientangle
297
298
299 //1 anqllp9sj7wo45w6bm11j8trn
300 // extern Agsym_t *E_weight, *E_minlen, *E_color, *E_fillcolor, *E_activepencolor, *E_activefillcolor, *E_selectedpencolor, *E_selectedfillcolor, *E_visitedpencolor, *E_visitedfillcolor, *E_deletedpencolor, *E_deletedfillcolor, *E_fontsize, *E_fontname, *E_fontcolor, *E_label, *E_xlabel, *E_dir, *E_style, *E_decorate, *E_showboxes, *E_arrowsz, *E_constr, *E_layer, *E_comment, *E_label_float, *E_samehead, *E_sametail, *E_arrowhead, *E_arrowtail, *E_headlabel, *E_taillabel, *E_labelfontsize, *E_labelfontname, *E_labelfontcolor, *E_labeldistance, *E_labelangle, *E_tailclip, *E_headclip, *E_penwidth
301
302
303 //1 bh0z9puipqw7gymjd5h5b8s6i
304 // extern struct fdpParms_s* fdp_parms
305
306
307
308
309 //3 ciez0pfggxdljedzsbklq49f0
310 // static inline point pointof(int x, int y)
311 public static Object pointof(Object... arg) {
312 UNSUPPORTED("8e4tj258yvfq5uhsdpk37n5eq"); // static inline point pointof(int x, int y)
313 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
314 UNSUPPORTED("c0j3k9xv06332q98k2pgpacto"); // point r;
315 UNSUPPORTED("12jimkrzqxavaie0cpapbx18c"); // r.x = x;
316 UNSUPPORTED("7ivmviysahgsc5nn9gtp7q2if"); // r.y = y;
317 UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); // return r;
318 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
319
320 throw new UnsupportedOperationException();
321 }
322
323
324
325
326 //3 c1s4k85p1cdfn176o3uryeros
327 // static inline pointf pointfof(double x, double y)
328 public static ST_pointf pointfof(double x, double y) {
329 // WARNING!! STRUCT
330 return pointfof_w_(x, y).copy();
331 }
332 private static ST_pointf pointfof_w_(double x, double y) {
333 ENTERING("c1s4k85p1cdfn176o3uryeros","pointfof");
334 try {
335 final ST_pointf r = new ST_pointf();
336 r.setDouble("x", x);
337 r.setDouble("y", y);
338 return r;
339 } finally {
340 LEAVING("c1s4k85p1cdfn176o3uryeros","pointfof");
341 }
342 }
343
344
345
346
347 //3 7cufnfitrh935ew093mw0i4b7
348 // static inline box boxof(int llx, int lly, int urx, int ury)
349 public static Object boxof(Object... arg) {
350 UNSUPPORTED("3lzesfdd337h31jrlib1czocm"); // static inline box boxof(int llx, int lly, int urx, int ury)
351 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
352 UNSUPPORTED("52u27kayecy1i1e8bbo8f7s9r"); // box b;
353 UNSUPPORTED("cylhjlutoc0sc0uy7g98m9fb8"); // b.LL.x = llx, b.LL.y = lly;
354 UNSUPPORTED("242of6revxzx8hpe7yerrchz6"); // b.UR.x = urx, b.UR.y = ury;
355 UNSUPPORTED("2vmm1j57brhn455f8f3iyw6mo"); // return b;
356 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
357
358 throw new UnsupportedOperationException();
359 }
360
361
362
363
364
365
366
367
368 //3 1n5xl70wxuabyf97mclvilsm6
369 // static inline point add_point(point p, point q)
370 public static Object add_point(Object... arg) {
371 UNSUPPORTED("6iamka1fx8fk1rohzzse8phte"); // static inline point add_point(point p, point q)
372 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
373 UNSUPPORTED("c0j3k9xv06332q98k2pgpacto"); // point r;
374 UNSUPPORTED("3n2sizjd0civbzm6iq7su1s2p"); // r.x = p.x + q.x;
375 UNSUPPORTED("65ygdo31w09i5i6bd2f7azcd3"); // r.y = p.y + q.y;
376 UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); // return r;
377 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
378
379 throw new UnsupportedOperationException();
380 }
381
382
383
384
385 //3 arrsbik9b5tnfcbzsm8gr2chx
386 // static inline pointf add_pointf(pointf p, pointf q)
387 public static ST_pointf add_pointf(final ST_pointf p, final ST_pointf q) {
388 // WARNING!! STRUCT
389 return add_pointf_w_(p.copy(), q.copy()).copy();
390 }
391 private static ST_pointf add_pointf_w_(final ST_pointf p, final ST_pointf q) {
392 ENTERING("arrsbik9b5tnfcbzsm8gr2chx","add_pointf");
393 try {
394 final ST_pointf r = new ST_pointf();
395 r.setDouble("x", p.x + q.x);
396 r.setDouble("y", p.y + q.y);
397 return r;
398 } finally {
399 LEAVING("arrsbik9b5tnfcbzsm8gr2chx","add_pointf");
400 }
401 }
402
403
404
405
406 //3 ai2dprak5y6obdsflguh5qbd7
407 // static inline point sub_point(point p, point q)
408 public static Object sub_point(Object... arg) {
409 UNSUPPORTED("cd602849h0bce8lu9xegka0ia"); // static inline point sub_point(point p, point q)
410 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
411 UNSUPPORTED("c0j3k9xv06332q98k2pgpacto"); // point r;
412 UNSUPPORTED("4q4q9dveah93si8ajfv59gz27"); // r.x = p.x - q.x;
413 UNSUPPORTED("9f90ik0o2yqhanzntpy3d2ydy"); // r.y = p.y - q.y;
414 UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); // return r;
415 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
416
417 throw new UnsupportedOperationException();
418 }
419
420
421
422
423 //3 16f6pyogcv3j7n2p0n8giqqgh
424 // static inline pointf sub_pointf(pointf p, pointf q)
425 public static Object sub_pointf(Object... arg) {
426 UNSUPPORTED("dmufj44lddsnj0wjyxsg2fcso"); // static inline pointf sub_pointf(pointf p, pointf q)
427 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
428 UNSUPPORTED("cvexv13y9fq49v0j4d5t4cm9f"); // pointf r;
429 UNSUPPORTED("4q4q9dveah93si8ajfv59gz27"); // r.x = p.x - q.x;
430 UNSUPPORTED("9f90ik0o2yqhanzntpy3d2ydy"); // r.y = p.y - q.y;
431 UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); // return r;
432 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
433
434 throw new UnsupportedOperationException();
435 }
436
437
438
439
440 //3 9k50jgrhc4f9824vf8ony74rw
441 // static inline point mid_point(point p, point q)
442 public static Object mid_point(Object... arg) {
443 UNSUPPORTED("evy44tdsmu3erff9dp2x835u2"); // static inline point mid_point(point p, point q)
444 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
445 UNSUPPORTED("c0j3k9xv06332q98k2pgpacto"); // point r;
446 UNSUPPORTED("1a6p6fm57o0wt5ze2btsx06c7"); // r.x = (p.x + q.x) / 2;
447 UNSUPPORTED("1kbj5tgdmfi6kf4jgg6skhr6e"); // r.y = (p.y + q.y) / 2;
448 UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); // return r;
449 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
450
451 throw new UnsupportedOperationException();
452 }
453
454
455
456
457 //3 59c4f7im0ftyowhnzzq2v9o1x
458 // static inline pointf mid_pointf(pointf p, pointf q)
459 public static Object mid_pointf(Object... arg) {
460 UNSUPPORTED("381o63o9kb04d7gzg65v0r3q"); // static inline pointf mid_pointf(pointf p, pointf q)
461 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
462 UNSUPPORTED("cvexv13y9fq49v0j4d5t4cm9f"); // pointf r;
463 UNSUPPORTED("c5vboetlr3mf43wns7iik6m1w"); // r.x = (p.x + q.x) / 2.;
464 UNSUPPORTED("bcdf562ldr3bjn78hcay5xd63"); // r.y = (p.y + q.y) / 2.;
465 UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); // return r;
466 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
467
468 throw new UnsupportedOperationException();
469 }
470
471
472
473
474 //3 5r18p38gisvcx3zsvbb9saixx
475 // static inline pointf interpolate_pointf(double t, pointf p, pointf q)
476 public static Object interpolate_pointf(Object... arg) {
477 UNSUPPORTED("894yimn33kmtm454llwdaotu8"); // static inline pointf interpolate_pointf(double t, pointf p, pointf q)
478 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
479 UNSUPPORTED("ef2acl8wa2ooqcb5vz3098maz"); // pointf r;
480 UNSUPPORTED("5tpwuyf5iidesy80v8o4nwkmk"); // r.x = p.x + t * (q.x - p.x);
481 UNSUPPORTED("ewnrc5uloj3w5jbmsjcn3wja0"); // r.y = p.y + t * (q.y - p.y);
482 UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); // return r;
483 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
484
485 throw new UnsupportedOperationException();
486 }
487
488
489
490
491 //3 bxzrv2ghq04qk5cbyy68s4mol
492 // static inline point exch_xy(point p)
493 public static Object exch_xy(Object... arg) {
494 UNSUPPORTED("2vxya0v2fzlv5e0vjaa8d414"); // static inline point exch_xy(point p)
495 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
496 UNSUPPORTED("c0j3k9xv06332q98k2pgpacto"); // point r;
497 UNSUPPORTED("60cojdwc2h7f0m51s9jdwvup7"); // r.x = p.y;
498 UNSUPPORTED("evp2x66oa4s1tlnc0ytxq2qbq"); // r.y = p.x;
499 UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); // return r;
500 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
501
502 throw new UnsupportedOperationException();
503 }
504
505
506
507
508 //3 9lt3e03tac6h6sydljrcws8fd
509 // static inline pointf exch_xyf(pointf p)
510 public static Object exch_xyf(Object... arg) {
511 UNSUPPORTED("8qamrobrqi8jsvvfrxkimrsnw"); // static inline pointf exch_xyf(pointf p)
512 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
513 UNSUPPORTED("cvexv13y9fq49v0j4d5t4cm9f"); // pointf r;
514 UNSUPPORTED("60cojdwc2h7f0m51s9jdwvup7"); // r.x = p.y;
515 UNSUPPORTED("evp2x66oa4s1tlnc0ytxq2qbq"); // r.y = p.x;
516 UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); // return r;
517 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
518
519 throw new UnsupportedOperationException();
520 }
521
522
523
524
525 //3 8l9qhieokthntzdorlu5zn29b
526 // static inline box box_bb(box b0, box b1)
527 public static Object box_bb(Object... arg) {
528 UNSUPPORTED("36et5gmnjrby6o7bq9sgh1hx6"); // static inline box box_bb(box b0, box b1)
529 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
530 UNSUPPORTED("52u27kayecy1i1e8bbo8f7s9r"); // box b;
531 UNSUPPORTED("8mr2c9xitsqi8z1plbp7ox1hu"); // b.LL.x = MIN(b0.LL.x, b1.LL.x);
532 UNSUPPORTED("2egu55ef4u1i03nwz01k7kcrl"); // b.LL.y = MIN(b0.LL.y, b1.LL.y);
533 UNSUPPORTED("9n6ei3odbgefwfxvql9whcpe"); // b.UR.x = MAX(b0.UR.x, b1.UR.x);
534 UNSUPPORTED("19ocysbuh4pxyft2bqhyhigr1"); // b.UR.y = MAX(b0.UR.y, b1.UR.y);
535 UNSUPPORTED("2vmm1j57brhn455f8f3iyw6mo"); // return b;
536 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
537
538 throw new UnsupportedOperationException();
539 }
540
541
542
543
544 //3 clws9h3bbjm0lw3hexf8nl4c4
545 // static inline boxf boxf_bb(boxf b0, boxf b1)
546 public static Object boxf_bb(Object... arg) {
547 UNSUPPORTED("dyrqu4ww9osr9c86gqgmifcp6"); // static inline boxf boxf_bb(boxf b0, boxf b1)
548 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
549 UNSUPPORTED("c57pq0f87j6dnbcvygu7v6k84"); // boxf b;
550 UNSUPPORTED("8mr2c9xitsqi8z1plbp7ox1hu"); // b.LL.x = MIN(b0.LL.x, b1.LL.x);
551 UNSUPPORTED("2egu55ef4u1i03nwz01k7kcrl"); // b.LL.y = MIN(b0.LL.y, b1.LL.y);
552 UNSUPPORTED("9n6ei3odbgefwfxvql9whcpe"); // b.UR.x = MAX(b0.UR.x, b1.UR.x);
553 UNSUPPORTED("19ocysbuh4pxyft2bqhyhigr1"); // b.UR.y = MAX(b0.UR.y, b1.UR.y);
554 UNSUPPORTED("2vmm1j57brhn455f8f3iyw6mo"); // return b;
555 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
556
557 throw new UnsupportedOperationException();
558 }
559
560
561
562
563 //3 bit6ycxo1iqd2al92y8gkzlvb
564 // static inline box box_intersect(box b0, box b1)
565 public static Object box_intersect(Object... arg) {
566 UNSUPPORTED("34gv28cldst09bl71itjgviue"); // static inline box box_intersect(box b0, box b1)
567 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
568 UNSUPPORTED("52u27kayecy1i1e8bbo8f7s9r"); // box b;
569 UNSUPPORTED("9slu7bixuymxttjic76ha2nl2"); // b.LL.x = MAX(b0.LL.x, b1.LL.x);
570 UNSUPPORTED("3uv943c2f82yuif249pf5azob"); // b.LL.y = MAX(b0.LL.y, b1.LL.y);
571 UNSUPPORTED("74tf5h16bc9zabq3s3dyny543"); // b.UR.x = MIN(b0.UR.x, b1.UR.x);
572 UNSUPPORTED("d99gcv3i7xes7y7rqf8ii20ux"); // b.UR.y = MIN(b0.UR.y, b1.UR.y);
573 UNSUPPORTED("2vmm1j57brhn455f8f3iyw6mo"); // return b;
574 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
575
576 throw new UnsupportedOperationException();
577 }
578
579
580
581
582 //3 8gfybie7k6pgb3o1a6llgpwng
583 // static inline boxf boxf_intersect(boxf b0, boxf b1)
584 public static Object boxf_intersect(Object... arg) {
585 UNSUPPORTED("ape22b8z6jfg17gvo42hok9eb"); // static inline boxf boxf_intersect(boxf b0, boxf b1)
586 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
587 UNSUPPORTED("c57pq0f87j6dnbcvygu7v6k84"); // boxf b;
588 UNSUPPORTED("9slu7bixuymxttjic76ha2nl2"); // b.LL.x = MAX(b0.LL.x, b1.LL.x);
589 UNSUPPORTED("3uv943c2f82yuif249pf5azob"); // b.LL.y = MAX(b0.LL.y, b1.LL.y);
590 UNSUPPORTED("74tf5h16bc9zabq3s3dyny543"); // b.UR.x = MIN(b0.UR.x, b1.UR.x);
591 UNSUPPORTED("d99gcv3i7xes7y7rqf8ii20ux"); // b.UR.y = MIN(b0.UR.y, b1.UR.y);
592 UNSUPPORTED("2vmm1j57brhn455f8f3iyw6mo"); // return b;
593 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
594
595 throw new UnsupportedOperationException();
596 }
597
598
599
600
601 //3 7z8j2quq65govaaejrz7b4cvb
602 // static inline int box_overlap(box b0, box b1)
603 public static Object box_overlap(Object... arg) {
604 UNSUPPORTED("1e9k599x7ygct7r4cfdxlk9u9"); // static inline int box_overlap(box b0, box b1)
605 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
606 UNSUPPORTED("7a9wwpu7dhdphd08y1ecw54w5"); // return OVERLAP(b0, b1);
607 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
608
609 throw new UnsupportedOperationException();
610 }
611
612
613
614
615 //3 4z0suuut2acsay5m8mg9dqjdu
616 // static inline int boxf_overlap(boxf b0, boxf b1)
617 public static Object boxf_overlap(Object... arg) {
618 UNSUPPORTED("905nejsewihwhhc3bhnrz9nwo"); // static inline int boxf_overlap(boxf b0, boxf b1)
619 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
620 UNSUPPORTED("7a9wwpu7dhdphd08y1ecw54w5"); // return OVERLAP(b0, b1);
621 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
622
623 throw new UnsupportedOperationException();
624 }
625
626
627
628
629 //3 dd34swz5rmdgu3a2np2a4h1dy
630 // static inline int box_contains(box b0, box b1)
631 public static Object box_contains(Object... arg) {
632 UNSUPPORTED("aputfc30fjkvy6jx4otljaczq"); // static inline int box_contains(box b0, box b1)
633 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
634 UNSUPPORTED("87ap80vrh2a4gpprbxr33lrg3"); // return CONTAINS(b0, b1);
635 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
636
637 throw new UnsupportedOperationException();
638 }
639
640
641
642
643 //3 8laj1bspbu2i1cjd9upr7xt32
644 // static inline int boxf_contains(boxf b0, boxf b1)
645 public static Object boxf_contains(Object... arg) {
646 UNSUPPORTED("7ccnttkiwt834yfyw0evcm18v"); // static inline int boxf_contains(boxf b0, boxf b1)
647 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
648 UNSUPPORTED("87ap80vrh2a4gpprbxr33lrg3"); // return CONTAINS(b0, b1);
649 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
650
651 throw new UnsupportedOperationException();
652 }
653
654
655
656
657 //3 4wf5swkz24xx51ja2dynbycu1
658 // static inline pointf perp (pointf p)
659 public static Object perp(Object... arg) {
660 UNSUPPORTED("567wpqlg9rv63ynyvxd9sgkww"); // static inline pointf perp (pointf p)
661 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
662 UNSUPPORTED("cvexv13y9fq49v0j4d5t4cm9f"); // pointf r;
663 UNSUPPORTED("2fyydy6t6yifjsczccsb9szeg"); // r.x = -p.y;
664 UNSUPPORTED("evp2x66oa4s1tlnc0ytxq2qbq"); // r.y = p.x;
665 UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); // return r;
666 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
667
668 throw new UnsupportedOperationException();
669 }
670
671
672
673
674 //3 6dtlpzv4mvgzb9o0b252yweuv
675 // static inline pointf scale (double c, pointf p)
676 public static Object scale(Object... arg) {
677 UNSUPPORTED("c1ngytew34bmkdb7vps5h3dh8"); // static inline pointf scale (double c, pointf p)
678 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
679 UNSUPPORTED("cvexv13y9fq49v0j4d5t4cm9f"); // pointf r;
680 UNSUPPORTED("dznf7nac14snww4usquyd6r3r"); // r.x = c * p.x;
681 UNSUPPORTED("33kk73m8vjcux5tnjl8co2pe6"); // r.y = c * p.y;
682 UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); // return r;
683 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
684
685 throw new UnsupportedOperationException();
686 }
687
688
689 //1 8g6b12c9lhliz7wt1b4g6ol4q
690 // static arrowdir_t Arrowdirs[] =
691
692
693 //1 bh7utclfhqwp6bpy5c8g693wa
694 // static arrowname_t Arrowsynonyms[] =
695 /*private static final __array_of_struct__ Arrowsynonyms = __array_of_struct__.malloc(arrowname_t.class, 1);
696 static {
697 Arrowsynonyms.plus(0).setStruct(create_arrowname_t(null, 0));
698 }*/
699
700 //1 5yb25qm8n3hiqb86lalpa6q5n
701 // static arrowname_t Arrowmods[] =
702 /*private static final __array_of_struct__ Arrowmods = __array_of_struct__.malloc(arrowname_t.class, 1);
703 static {
704 Arrowmods.plus(0).setStruct(create_arrowname_t(null, 0));
705 }*/
706
707 //1 e8dhqbfo267go86knqiqq0dnv
708 // static arrowname_t Arrownames[] =
709 /*private static final __array_of_struct__ Arrownames = __array_of_struct__.malloc(arrowname_t.class, 3);
710 static {
711 Arrownames.plus(0).setStruct(create_arrowname_t("normal", 1));
712 Arrownames.plus(1).setStruct(create_arrowname_t("none", 8));
713 Arrownames.plus(2).setStruct(create_arrowname_t(null, 0));
714 }
715 private final static __struct__ create_arrowname_t(String name, int type) {
716 final __struct__<arrowname_t> result = JUtils.from(arrowname_t.class);
717 result.setCString("name", name==null?null:new CString(name));
718 result.setInt("type", type);
719 return result;
720 }*/
721 //1 dnirq5m2r8c2mep5o1m3cdn6d
722 // static arrowtype_t Arrowtypes[] =
723 /*private static final __array_of_struct__ Arrowtypes = __array_of_struct__.malloc(arrowtype_t.class, 9);
724 static {
725 Arrowtypes.plus(0).setStruct(createArrowtypes(1, 1.0, function(arrows__c.class, "arrow_type_normal")));
726 Arrowtypes.plus(1).setStruct(createArrowtypes(2, 1.0, function(arrows__c.class, "arrow_type_crow")));
727 Arrowtypes.plus(2).setStruct(createArrowtypes(3, 0.5, function(arrows__c.class, "arrow_type_tee")));
728 Arrowtypes.plus(3).setStruct(createArrowtypes(4, 1.0, function(arrows__c.class, "arrow_type_box")));
729 Arrowtypes.plus(4).setStruct(createArrowtypes(5, 1.2, function(arrows__c.class, "arrow_type_diamond")));
730 Arrowtypes.plus(5).setStruct(createArrowtypes(6, 0.8, function(arrows__c.class, "arrow_type_dot")));
731 Arrowtypes.plus(6).setStruct(createArrowtypes(7, 1.0, function(arrows__c.class, "arrow_type_curve")));
732 Arrowtypes.plus(7).setStruct(createArrowtypes(8, 0.5, function(arrows__c.class, "arrow_type_gap")));
733 Arrowtypes.plus(8).setStruct(createArrowtypes(0, 0.0, null));
734 }
735 private final static __struct__ createArrowtypes(int type, double lenfact, CFunction function) {
736 final __struct__<arrowtype_t> result = JUtils.from(arrowtype_t.class);
737 result.setInt("type", type);
738 result.setDouble("lenfact", lenfact);
739 result.setPtr("gen", function);
740 return result;
741 }*/
742
743
744 //3 3apnay8wumntfkvud64ov7fcf
745 // static char *arrow_match_name_frag(char *name, arrowname_t * arrownames, int *flag)
746 public static CString arrow_match_name_frag(CString name, ST_arrowname_t[] arrowsynonyms, int flag[]) {
747 ENTERING("3apnay8wumntfkvud64ov7fcf","arrow_match_name_frag");
748 try {
749 UNSUPPORTED("cw8t22aa6zs16jqowqjjkzywg"); // static char *arrow_match_name_frag(char *name, arrowname_t * arrownames, int *flag)
750 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
751 UNSUPPORTED("ij5y28mkncrjeiqcpshx0eb6"); // arrowname_t *arrowname;
752 UNSUPPORTED("1tn1krtup6qe1swed3vb7rsyl"); // int namelen = 0;
753 UNSUPPORTED("c0vrdgjia18jvvw01f49sovz5"); // char *rest = name;
754 UNSUPPORTED("ecwk85uixpdt1xvlwr1rw58a4"); // for (arrowname = arrownames; arrowname->name; arrowname++) {
755 UNSUPPORTED("9h58czuqvp8q45izpqt7dzgi6"); // namelen = strlen(arrowname->name);
756 UNSUPPORTED("9fd8hjdir8m00yuhi9anrrnos"); // if (strncmp(name, arrowname->name, namelen) == 0) {
757 UNSUPPORTED("ag3b2jixanemgvefu1c01mp6u"); // *flag |= arrowname->type;
758 UNSUPPORTED("1h43j4ja8m8uxuvay0jg33ukm"); // rest += namelen;
759 UNSUPPORTED("ai3czg6gaaxspsmndknpyvuiu"); // break;
760 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
761 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
762 UNSUPPORTED("bbweh79ihpurvsz097xab3u5k"); // return rest;
763 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
764
765 throw new UnsupportedOperationException();
766 } finally {
767 LEAVING("3apnay8wumntfkvud64ov7fcf","arrow_match_name_frag");
768 }
769 }
770
771
772
773
774 //3 b669zec8aznq4obnil98j5lby
775 // static char *arrow_match_shape(char *name, int *flag)
776 public static CString arrow_match_shape(CString name, int flag[]) {
777 ENTERING("b669zec8aznq4obnil98j5lby","arrow_match_shape");
778 try {
779 CString next, rest;
780 int f[] = new int[] {0};
781 rest = arrow_match_name_frag(name, Z.z().Arrowsynonyms, f);
782 UNSUPPORTED("304yfmlt3qwn4zydpx1hgmf5o"); // if (rest == name) {
783 UNSUPPORTED("8vxyvy38lzpbd83cu26nejaan"); // do {
784 UNSUPPORTED("do0zgfzipmk0sgv0q0u14es1c"); // next = rest;
785 UNSUPPORTED("csdu3mgjv4ya6xqk2bisko4gp"); // rest = arrow_match_name_frag(next, Arrowmods, &f);
786 UNSUPPORTED("17cxbrtqid90xrrl75cvyvhs5"); // } while (next != rest);
787 UNSUPPORTED("9u4q5zwdkpdava55p9xyg8xph"); // rest = arrow_match_name_frag(rest, Arrownames, &f);
788 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
789 UNSUPPORTED("98pvjlaju0ufz56v1jcwyelw6"); // if (f && !(f & ((1 << 4) - 1)))
790 UNSUPPORTED("2mly07gipiope02mgflzcie3e"); // f |= 1;
791 UNSUPPORTED("48w47t8z0k3lb7rxdlbd6n7p9"); // *flag |= f;
792 UNSUPPORTED("bbweh79ihpurvsz097xab3u5k"); // return rest;
793 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
794
795 throw new UnsupportedOperationException();
796 } finally {
797 LEAVING("b669zec8aznq4obnil98j5lby","arrow_match_shape");
798 }
799 }
800
801
802
803
804 //3 2pveqb5qcgfxcqp410ub942eg
805 // static void arrow_match_name(char *name, int *flag)
806 public static void arrow_match_name(CString name, int flag[]) {
807 ENTERING("2pveqb5qcgfxcqp410ub942eg","arrow_match_name");
808 try {
809 CString rest = name;
810 CString next;
811 int i, f;
812 flag[0] = 0;
813 LOG2("Skipping arrow_match_name");
814 } finally {
815 LEAVING("2pveqb5qcgfxcqp410ub942eg","arrow_match_name");
816 }
817 }
818
819
820
821
822 //3 2szgwtfieaw58pea2ohjyu8ea
823 // void arrow_flags(Agedge_t * e, int *sflag, int *eflag)
824 public static void arrow_flags(ST_Agedge_s e, int sflag[], int eflag[]) {
825 ENTERING("2szgwtfieaw58pea2ohjyu8ea","arrow_flags");
826 try {
827 CString attr;
828 ST_arrowdir_t arrowdir;
829 sflag[0] = (0);
830 eflag[0] = agisdirected(agraphof(e)) ? 1 : (0);
831 if (Z.z().E_dir!=null && ((attr = agxget(e, Z.z().E_dir))).charAt(0)!='\0') {
832 UNSUPPORTED("em7x45v09orjeey5u06gf9b4s"); // for (arrowdir = Arrowdirs; arrowdir->dir; arrowdir++) {
833 UNSUPPORTED("dhaookuw0a1xqmh07lldcvlgi"); // if ((*(attr)==*(arrowdir->dir)&&!strcmp(attr,arrowdir->dir))) {
834 UNSUPPORTED("1d32qbc447n7nmmvedj3bnhr4"); // *sflag = arrowdir->sflag;
835 UNSUPPORTED("4bwlkonvn34iwi5ea1o8zov3o"); // *eflag = arrowdir->eflag;
836 UNSUPPORTED("9ekmvj13iaml5ndszqyxa8eq"); // break;
837 UNSUPPORTED("6t98dcecgbvbvtpycwiq2ynnj"); // }
838 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
839 }
840 if (Z.z().E_arrowhead!=null && (eflag[0] == 1) && ((attr = agxget(e,Z.z(). E_arrowhead))).charAt(0)!='\0')
841 arrow_match_name(attr, eflag);
842 if (Z.z().E_arrowtail!=null && (sflag[0] == 1) && ((attr = agxget(e, Z.z().E_arrowtail))).charAt(0)!='\0')
843 arrow_match_name(attr, sflag);
844 if (ED_conc_opp_flag(e)) {
845 UNSUPPORTED("1p2usipxeqlorwroqo37t3yfy"); // edge_t *f;
846 UNSUPPORTED("6ne3pu2bnhx6tyx81t4td4up6"); // int s0, e0;
847 UNSUPPORTED("8vccx8sm1c228dqm7l1jm2hfs"); // /* pick up arrowhead of opposing edge */
848 UNSUPPORTED("cu21qrxyz93ly7l96af2gcsle"); // f = (agedge(agraphof(aghead(e)),aghead(e),agtail(e),NULL,0));
849 UNSUPPORTED("9u6scg3h7baww90tcykvjhajo"); // arrow_flags(f, &s0, &e0);
850 UNSUPPORTED("157il4mnbenpon7knxfdb4fwb"); // *eflag = *eflag | s0;
851 UNSUPPORTED("7wucod5xwp24vblpcbjbmmcq1"); // *sflag = *sflag | e0;
852 }
853 } finally {
854 LEAVING("2szgwtfieaw58pea2ohjyu8ea","arrow_flags");
855 }
856 }
857
858
859
860
861 //3 1yk5wl46i7rlzcern0tefd24s
862 // double arrow_length(edge_t * e, int flag)
863 public static double arrow_length(ST_Agedge_s e, int flag) {
864 ENTERING("1yk5wl46i7rlzcern0tefd24s","arrow_length");
865 try {
866 double lenfact = 0.0;
867 int f, i;
868 for (i = 0; i < 4; i++) {
869 /* we don't simply index with flag because arrowtypes are not necessarily sorted */
870 f = (flag >> (i * 8)) & ((1 << 4) - 1);
871 for (int arrowtype = 0; Z.z().Arrowtypes[arrowtype].gen!=null; arrowtype++) {
872 if (f == Z.z().Arrowtypes[arrowtype].type) {
873 lenfact += Z.z().Arrowtypes[arrowtype].lenfact;
874 break;
875 }
876 }
877 }
878 /* The original was missing the factor E_arrowsz, but I believe it
879 should be here for correct arrow clipping */
880 return 10. * lenfact * late_double(e, Z.z().E_arrowsz, 1.0, 0.0);
881 } finally {
882 LEAVING("1yk5wl46i7rlzcern0tefd24s","arrow_length");
883 }
884 }
885
886
887
888
889 //3 7ymcsnwqkr1crisrga0kezh1f
890 // static boolean inside(inside_t * inside_context, pointf p)
891 public static boolean inside(ST_inside_t inside_context, final ST_pointf p) {
892 // WARNING!! STRUCT
893 return inside_w_(inside_context, p.copy());
894 }
895 private static boolean inside_w_(ST_inside_t inside_context, final ST_pointf p) {
896 ENTERING("7ymcsnwqkr1crisrga0kezh1f","inside");
897 try {
898 return DIST2(p, inside_context.a_p.get(0)) <= inside_context.a_r.getDouble();
899 } finally {
900 LEAVING("7ymcsnwqkr1crisrga0kezh1f","inside");
901 }
902 }
903
904
905
906
907 //3 9eellwhg4gsa2pdszpeqihs2d
908 // int arrowEndClip(edge_t* e, pointf * ps, int startp, int endp, bezier * spl, int eflag)
909 public static int arrowEndClip(ST_Agedge_s e, ST_pointf.Array ps, int startp, int endp, ST_bezier spl, int eflag) {
910 ENTERING("9eellwhg4gsa2pdszpeqihs2d","arrowEndClip");
911 try {
912 final ST_inside_t inside_context = new ST_inside_t();
913 final ST_pointf.Array sp = new ST_pointf.Array( 4);
914 double elen;
915 MutableDouble elen2 = new MutableDouble(0);
916 elen = arrow_length(e, eflag);
917 elen2.setValue(elen * elen);
918 spl.setInt("eflag", eflag);
919 spl.setStruct("ep", ps.plus(endp + 3).getStruct());
920 if (endp > startp && DIST2(ps.get(endp), ps.get(endp + 3)) < elen2.getValue()) {
921 endp -= 3;
922 }
923 sp.plus(3).setStruct(ps.plus(endp).getStruct());
924 sp.plus(2).setStruct(ps.plus(endp+1).getStruct());
925 sp.plus(1).setStruct(ps.plus(endp+2).getStruct());
926 sp.plus(0).setStruct(spl.ep);
927 /* ensure endpoint starts inside */
928 inside_context.setPtr("a.p", sp.plus(0).asPtr());
929 inside_context.setPtr("a.r", elen2.amp());
930 bezier_clip(inside_context, function(arrows__c.class, "inside"), sp, NOT(false));
931 ps.plus(endp).setStruct(sp.plus(3).getStruct());
932 ps.plus(endp+1).setStruct(sp.plus(2).getStruct());
933 ps.plus(endp+2).setStruct(sp.plus(1).getStruct());
934 ps.plus(endp+3).setStruct(sp.plus(0).getStruct());
935 return endp;
936 } finally {
937 LEAVING("9eellwhg4gsa2pdszpeqihs2d","arrowEndClip");
938 }
939 }
940
941
942
943
944 //3 q7y4oxn0paexbgynmtg2zmiv
945 // int arrowStartClip(edge_t* e, pointf * ps, int startp, int endp, bezier * spl, int sflag)
946 public static int arrowStartClip(ST_Agedge_s e, ST_pointf.Array ps, int startp, int endp, ST_bezier spl, int sflag) {
947 ENTERING("q7y4oxn0paexbgynmtg2zmiv","arrowStartClip");
948 try {
949 final ST_inside_t inside_context = new ST_inside_t();
950 final ST_pointf.Array sp = new ST_pointf.Array( 4);
951 double slen;
952 MutableDouble slen2 = new MutableDouble(0);
953 slen = arrow_length(e, sflag);
954 slen2.setValue(slen * slen);
955 spl.setInt("sflag", sflag);
956 spl.setStruct("sp", ps.plus(startp).getStruct());
957 if (endp > startp && DIST2(ps.get(startp), ps.get(startp + 3)) < slen2.getValue()) {
958 startp += 3;
959 }
960 sp.plus(0).setStruct(ps.plus(startp+3).getStruct());
961 sp.plus(1).setStruct(ps.plus(startp+2).getStruct());
962 sp.plus(2).setStruct(ps.plus(startp+1).getStruct());
963 sp.plus(3).setStruct(spl.sp);
964 /* ensure endpoint starts inside */
965 inside_context.setPtr("a.p", sp.plus(3).asPtr());
966 inside_context.setPtr("a.r", slen2.amp());
967 bezier_clip(inside_context, function(arrows__c.class, "inside"), sp, false);
968 ps.plus(startp).setStruct(sp.plus(3).getStruct());
969 ps.plus(startp+1).setStruct(sp.plus(2).getStruct());
970 ps.plus(startp+2).setStruct(sp.plus(1).getStruct());
971 ps.plus(startp+3).setStruct(sp.plus(0).getStruct());
972 return startp;
973 } finally {
974 LEAVING("9eellwhg4gsa2pdszpeqihs2d","arrowEndClip");
975 }
976 }
977
978
979
980
981 //3 5i0vg914q5v5dzz5vo7rg9omc
982 // void arrowOrthoClip(edge_t* e, pointf* ps, int startp, int endp, bezier* spl, int sflag, int eflag)
983 public static Object arrowOrthoClip(Object... arg) {
984 UNSUPPORTED("5cmga0193q90gs5y2r0l9ekgq"); // void arrowOrthoClip(edge_t* e, pointf* ps, int startp, int endp, bezier* spl, int sflag, int eflag)
985 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
986 UNSUPPORTED("y7yudkjc31udfiam6z6lkpyz"); // pointf p, q, r, s, t;
987 UNSUPPORTED("3kkc3p6yj8romhqyooa86wcf7"); // double d, tlen, hlen, maxd;
988 UNSUPPORTED("c69aoxg5blb5c27rwb7uvguna"); // if (sflag && eflag && (endp == startp)) { /* handle special case of two arrows on a single segment */
989 UNSUPPORTED("eb6qp4f6c1liqz5gv8yr4nt2u"); // p = ps[endp];
990 UNSUPPORTED("ecphms6syi9sh7jtisdvhb8hr"); // q = ps[endp+3];
991 UNSUPPORTED("2pzsi9r63yv2o8qeounzv6cny"); // tlen = arrow_length (e, sflag);
992 UNSUPPORTED("f4d86okjchj0qyg2roq13hufh"); // hlen = arrow_length (e, eflag);
993 UNSUPPORTED("3sbhjktcu1u1avngc5ej62mw4"); // d = DIST(p, q);
994 UNSUPPORTED("bsdcbs5e8tkm1802lidu0jtw8"); // if (hlen + tlen >= d) {
995 UNSUPPORTED("8gpoj60hh2teibwc83s0ii79w"); // hlen = tlen = d/3.0;
996 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
997 UNSUPPORTED("6xtkcedj7la7fqplc0unqj0wx"); // if (p.y == q.y) { /* horz segment */
998 UNSUPPORTED("9n0q5j1nqa19z0zoz3mpmwpdv"); // s.y = t.y = p.y;
999 UNSUPPORTED("c2tle7mztwggexoad4drqjw0a"); // if (p.x < q.x) {
1000 UNSUPPORTED("183kgzstrmgynznfkfj0jl3df"); // t.x = q.x - hlen;
1001 UNSUPPORTED("7cugpgpm4lyr66kkhauqj5qvy"); // s.x = p.x + tlen;
1002 UNSUPPORTED("6t98dcecgbvbvtpycwiq2ynnj"); // }
1003 UNSUPPORTED("6q044im7742qhglc4553noina"); // else {
1004 UNSUPPORTED("a8lrkw50xbjo3ntsv0r1mz5i9"); // t.x = q.x + hlen;
1005 UNSUPPORTED("37zp6lexzsbm2vomf22x7i5r"); // s.x = p.x - tlen;
1006 UNSUPPORTED("6t98dcecgbvbvtpycwiq2ynnj"); // }
1007 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
1008 UNSUPPORTED("4l6yfu81669thfh19tmcn44pu"); // else { /* vert segment */
1009 UNSUPPORTED("bc0n1oxhmb3wgphgm1w4n9dz1"); // s.x = t.x = p.x;
1010 UNSUPPORTED("d2pzq44lkkxam6rx01xnozquf"); // if (p.y < q.y) {
1011 UNSUPPORTED("5k5qyffqi7gacnu4jwl6efngx"); // t.y = q.y - hlen;
1012 UNSUPPORTED("7ppaznbfc8awmm6e9d9qzw4ms"); // s.y = p.y + tlen;
1013 UNSUPPORTED("6t98dcecgbvbvtpycwiq2ynnj"); // }
1014 UNSUPPORTED("6q044im7742qhglc4553noina"); // else {
1015 UNSUPPORTED("8ohhvcqa5v7oor1gbpznb6faq"); // t.y = q.y + hlen;
1016 UNSUPPORTED("4j6guu6e5ddqobe77kt7sbmjq"); // s.y = p.y - tlen;
1017 UNSUPPORTED("6t98dcecgbvbvtpycwiq2ynnj"); // }
1018 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
1019 UNSUPPORTED("a4d4fgiq4l3sbeb9ud8dowkby"); // ps[endp] = ps[endp + 1] = s;
1020 UNSUPPORTED("db740uoo9pfyknnmi2yx0glgb"); // ps[endp + 2] = ps[endp + 3] = t;
1021 UNSUPPORTED("ewajj4utlr95mfmaswtc9yeiv"); // spl->eflag = eflag, spl->ep = p;
1022 UNSUPPORTED("9bgf1pn9yx1vlolgcjos2emsl"); // spl->sflag = sflag, spl->sp = q;
1023 UNSUPPORTED("a7fgam0j0jm7bar0mblsv3no4"); // return;
1024 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
1025 UNSUPPORTED("5zse8mf1iyqtzzlq2txqcym6x"); // if (eflag) {
1026 UNSUPPORTED("bpf9snlwegftq8d78l9hsz76b"); // hlen = arrow_length(e, eflag);
1027 UNSUPPORTED("eb6qp4f6c1liqz5gv8yr4nt2u"); // p = ps[endp];
1028 UNSUPPORTED("ecphms6syi9sh7jtisdvhb8hr"); // q = ps[endp+3];
1029 UNSUPPORTED("3sbhjktcu1u1avngc5ej62mw4"); // d = DIST(p, q);
1030 UNSUPPORTED("9b0ae4jocdkvqt8r3iw39yf5d"); // maxd = 0.9*d;
1031 UNSUPPORTED("bwzkrhk431iwhs6c467tb0yh9"); // if (hlen >= maxd) { /* arrow too long */
1032 UNSUPPORTED("23uwvl5a8msik1u1crb262nqj"); // hlen = maxd;
1033 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
1034 UNSUPPORTED("6xtkcedj7la7fqplc0unqj0wx"); // if (p.y == q.y) { /* horz segment */
1035 UNSUPPORTED("a851ewci39wssny4nn99f4nmr"); // r.y = p.y;
1036 UNSUPPORTED("a2dyb0em7hwd4qdx1u0tuc8pl"); // if (p.x < q.x) r.x = q.x - hlen;
1037 UNSUPPORTED("90ksto8lyojedi0p77l4zm7x"); // else r.x = q.x + hlen;
1038 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
1039 UNSUPPORTED("4l6yfu81669thfh19tmcn44pu"); // else { /* vert segment */
1040 UNSUPPORTED("4rh9lai2dcsutwg48bb2qljyg"); // r.x = p.x;
1041 UNSUPPORTED("6gnp9tso58zn1rn4j7jv3i1y0"); // if (p.y < q.y) r.y = q.y - hlen;
1042 UNSUPPORTED("3wd6fw8km4tp6a1p9ijk343ih"); // else r.y = q.y + hlen;
1043 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
1044 UNSUPPORTED("bxxlk6noh1kzyi93fptcz29j4"); // ps[endp + 1] = p;
1045 UNSUPPORTED("d3kionq4ycqr87orc5vkdnse0"); // ps[endp + 2] = ps[endp + 3] = r;
1046 UNSUPPORTED("4uwxjmxybnuriwua5xoo17bfa"); // spl->eflag = eflag;
1047 UNSUPPORTED("25oo9o1uy5fisoodt43sio6zx"); // spl->ep = q;
1048 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
1049 UNSUPPORTED("3297fx8lk8bjyg998l9ujeeph"); // if (sflag) {
1050 UNSUPPORTED("5slqgq5wsgplyy9uj9mg5pkrc"); // tlen = arrow_length(e, sflag);
1051 UNSUPPORTED("ayxhimnpo6p08kshlux75qpcu"); // p = ps[startp];
1052 UNSUPPORTED("2ydx1urmjnn1tgx6ffzsvwimx"); // q = ps[startp+3];
1053 UNSUPPORTED("3sbhjktcu1u1avngc5ej62mw4"); // d = DIST(p, q);
1054 UNSUPPORTED("9b0ae4jocdkvqt8r3iw39yf5d"); // maxd = 0.9*d;
1055 UNSUPPORTED("1uya1cfbkj8b6j38zbvdxmgrq"); // if (tlen >= maxd) { /* arrow too long */
1056 UNSUPPORTED("3ydle9u127f7saxiibosc2lxs"); // tlen = maxd;
1057 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
1058 UNSUPPORTED("6xtkcedj7la7fqplc0unqj0wx"); // if (p.y == q.y) { /* horz segment */
1059 UNSUPPORTED("a851ewci39wssny4nn99f4nmr"); // r.y = p.y;
1060 UNSUPPORTED("7xq2f46jfu6rsd83fqyr71z26"); // if (p.x < q.x) r.x = p.x + tlen;
1061 UNSUPPORTED("8gtrjqabiq8x8jl0j2eveiugg"); // else r.x = p.x - tlen;
1062 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
1063 UNSUPPORTED("4l6yfu81669thfh19tmcn44pu"); // else { /* vert segment */
1064 UNSUPPORTED("4rh9lai2dcsutwg48bb2qljyg"); // r.x = p.x;
1065 UNSUPPORTED("es4i2rg7sahthpreieu5hcwl7"); // if (p.y < q.y) r.y = p.y + tlen;
1066 UNSUPPORTED("26o5nwhklplaxveikjpxzxoom"); // else r.y = p.y - tlen;
1067 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
1068 UNSUPPORTED("5pnx91gtz1gahdprf0syc4yk5"); // ps[startp] = ps[startp + 1] = r;
1069 UNSUPPORTED("3e3iux8uecaf6eu2s9q46clr5"); // ps[startp + 2] = q;
1070 UNSUPPORTED("bmeeipd0o72kslox40628z9gj"); // spl->sflag = sflag;
1071 UNSUPPORTED("dwq656v3u8zmbqdetlo0wmyeb"); // spl->sp = p;
1072 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
1073 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
1074
1075 throw new UnsupportedOperationException();
1076 }
1077
1078
1079
1080
1081 //3 b7nm38od2nxotpyzxg0ychqdb
1082 // static void arrow_type_normal(GVJ_t * job, pointf p, pointf u, double arrowsize, double penwidth, int flag)
1083 public static Object arrow_type_normal(Object... arg) {
1084 UNSUPPORTED("bk3aihjbdtkitpdvvtmzbt2zu"); // static void arrow_type_normal(GVJ_t * job, pointf p, pointf u, double arrowsize, double penwidth, int flag)
1085 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
1086 UNSUPPORTED("4z3ehq6q8ofvyjy4r4mrg86cl"); // pointf q, v, a[5];
1087 UNSUPPORTED("5qr741c2e1pdivv0bbjcr6cik"); // double arrowwidth;
1088 UNSUPPORTED("9gahmv6psjnccqesq7xt6q6hx"); // arrowwidth = 0.35;
1089 UNSUPPORTED("bih7b1ef9lfxy4uy4o07ae3bk"); // if (penwidth > 4)
1090 UNSUPPORTED("o3yn0730zlzconddqarivq05"); // arrowwidth *= penwidth / 4;
1091 UNSUPPORTED("949z3586m713okvlu1ymyw1us"); // v.x = -u.y * arrowwidth;
1092 UNSUPPORTED("c8xqr3hfd006yf1uuh47ndi71"); // v.y = u.x * arrowwidth;
1093 UNSUPPORTED("eh1wtktxp1goqc7akjgyqf00j"); // q.x = p.x + u.x;
1094 UNSUPPORTED("3op9xoxcy2m0v7q790ta7f9hl"); // q.y = p.y + u.y;
1095 UNSUPPORTED("eh6fh3kco3kvywuta8d8yb5v0"); // if (flag & (1<<(4+1))) {
1096 UNSUPPORTED("3by9fwhdnq30ll5nt8qbfwx0p"); // a[0] = a[4] = p;
1097 UNSUPPORTED("4ut2bmvsgdsemxiv8urham7m3"); // a[1].x = p.x - v.x;
1098 UNSUPPORTED("asa1ffrrxd6dkzm1sdamgofuu"); // a[1].y = p.y - v.y;
1099 UNSUPPORTED("60oc061ln68pvrg7zp8s3ncog"); // a[2] = q;
1100 UNSUPPORTED("591i8kbz6r8bskar4gy0vpsus"); // a[3].x = p.x + v.x;
1101 UNSUPPORTED("7i9sj4qz5f52w1wiz47bo6dv2"); // a[3].y = p.y + v.y;
1102 UNSUPPORTED("c07up7zvrnu2vhzy6d7zcu94g"); // } else {
1103 UNSUPPORTED("6ofxgqmmh2ikk8818bf8aw2mw"); // a[0] = a[4] = q;
1104 UNSUPPORTED("4l3g4pagkn0dto3bwi2e0bukd"); // a[1].x = q.x - v.x;
1105 UNSUPPORTED("9wv7w8vdiedhkfehzqwyyv897"); // a[1].y = q.y - v.y;
1106 UNSUPPORTED("d0mui3zxt1cx6mx5wfax35iah"); // a[2] = p;
1107 UNSUPPORTED("b5arwmpck5jtms8g1zgnojj5o"); // a[3].x = q.x + v.x;
1108 UNSUPPORTED("3viyneb6qkp0alwghd7mo06cc"); // a[3].y = q.y + v.y;
1109 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
1110 UNSUPPORTED("3kac8n2z06u2z5pqkm7c4z4nl"); // if (flag & (1<<(4+2)))
1111 UNSUPPORTED("52punwd4fhhq1arhez8cuwvam"); // gvrender_polygon(job, a, 3, !(flag & (1<<(4+0))));
1112 UNSUPPORTED("9i420px3t1z2sosclutiev22e"); // else if (flag & (1<<(4+3)))
1113 UNSUPPORTED("gu9pg6c0d0uzlztdiq2o96zh"); // gvrender_polygon(job, &a[2], 3, !(flag & (1<<(4+0))));
1114 UNSUPPORTED("div10atae09n36x269sl208r1"); // else
1115 UNSUPPORTED("7c6e70h4efa2wpa155lfy3er5"); // gvrender_polygon(job, &a[1], 3, !(flag & (1<<(4+0))));
1116 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
1117
1118 throw new UnsupportedOperationException();
1119 }
1120
1121
1122
1123
1124 //3 b6y46a44yguy7zuhgxukxnq79
1125 // static void arrow_type_crow(GVJ_t * job, pointf p, pointf u, double arrowsize, double penwidth, int flag)
1126 public static Object arrow_type_crow(Object... arg) {
1127 UNSUPPORTED("6rtaogz992ixfhc4qfzpl9pw8"); // static void arrow_type_crow(GVJ_t * job, pointf p, pointf u, double arrowsize, double penwidth, int flag)
1128 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
1129 UNSUPPORTED("1hutab8l2bf18ywdh16qls7ix"); // pointf m, q, v, w, a[9];
1130 UNSUPPORTED("9riilhm03el22oazbpvsntuyd"); // double arrowwidth, shaftwidth;
1131 UNSUPPORTED("3pjnxs55moxekjdkzcgmes60h"); // arrowwidth = 0.45;
1132 UNSUPPORTED("7k8ulzafyheqq2wcj2ued1mll"); // if (penwidth > (4 * arrowsize) && (flag & (1<<(4+1))))
1133 UNSUPPORTED("85aamjzbblwnk2bp9jvnetpmf"); // arrowwidth *= penwidth / (4 * arrowsize);
1134 UNSUPPORTED("ykk0490b4cs8a1v9gpqx95we"); // shaftwidth = 0;
1135 UNSUPPORTED("61i60vknj2akb0ojgfdcnjjyh"); // if (penwidth > 1 && (flag & (1<<(4+1))))
1136 UNSUPPORTED("ak0a6438e5b0b2nu2wl572f6d"); // shaftwidth = 0.05 * (penwidth - 1) / arrowsize; /* arrowsize to cancel the arrowsize term already in u */
1137 UNSUPPORTED("949z3586m713okvlu1ymyw1us"); // v.x = -u.y * arrowwidth;
1138 UNSUPPORTED("c8xqr3hfd006yf1uuh47ndi71"); // v.y = u.x * arrowwidth;
1139 UNSUPPORTED("56jq7ic46net8ort3ve4st2tw"); // w.x = -u.y * shaftwidth;
1140 UNSUPPORTED("ampfe31k0mn8vsflzy5cx4lgv"); // w.y = u.x * shaftwidth;
1141 UNSUPPORTED("eh1wtktxp1goqc7akjgyqf00j"); // q.x = p.x + u.x;
1142 UNSUPPORTED("3op9xoxcy2m0v7q790ta7f9hl"); // q.y = p.y + u.y;
1143 UNSUPPORTED("cfk5fnc73y4ey68iwqxlsr7u9"); // m.x = p.x + u.x * 0.5;
1144 UNSUPPORTED("2mtpxqz0h7jsb7bmao9g1vkar"); // m.y = p.y + u.y * 0.5;
1145 UNSUPPORTED("5rymactsr9099qy69qf1bkwdr"); // if (flag & (1<<(4+1))) { /* vee */
1146 UNSUPPORTED("4s8pxkc9kbvhabi2gbpxic5sm"); // a[0] = a[8] = p;
1147 UNSUPPORTED("4l3g4pagkn0dto3bwi2e0bukd"); // a[1].x = q.x - v.x;
1148 UNSUPPORTED("9wv7w8vdiedhkfehzqwyyv897"); // a[1].y = q.y - v.y;
1149 UNSUPPORTED("6rqmfaf4g98cg0t1qaax08e69"); // a[2].x = m.x - w.x;
1150 UNSUPPORTED("1nwyu905ao88kvq8pgnfwerf5"); // a[2].y = m.y - w.y;
1151 UNSUPPORTED("9z1frd2w5h9zvfo4pszqlzp30"); // a[3].x = q.x - w.x;
1152 UNSUPPORTED("1s86b9xef6phy3gt70ojgn6ip"); // a[3].y = q.y - w.y;
1153 UNSUPPORTED("4zd6xleeq5n1l2zznquvnlw7v"); // a[4] = q;
1154 UNSUPPORTED("2wb1104b1x08j7tecfcwk25uj"); // a[5].x = q.x + w.x;
1155 UNSUPPORTED("6tq7rnp0h0p9xtxibo13g8v3t"); // a[5].y = q.y + w.y;
1156 UNSUPPORTED("7byonl28yipw4lk1syuuj51it"); // a[6].x = m.x + w.x;
1157 UNSUPPORTED("lwb6vnlr2dq5ysijij21wbgl"); // a[6].y = m.y + w.y;
1158 UNSUPPORTED("eh4rkk1h3ciybh0u0hgehkdxx"); // a[7].x = q.x + v.x;
1159 UNSUPPORTED("bxhyoes561jf42tw73tjj33sj"); // a[7].y = q.y + v.y;
1160 UNSUPPORTED("54abbljqrd361peswxjtohjg0"); // } else { /* crow */
1161 UNSUPPORTED("5i9r1mehhwkkn8ojo8csm0piw"); // a[0] = a[8] = q;
1162 UNSUPPORTED("4ut2bmvsgdsemxiv8urham7m3"); // a[1].x = p.x - v.x;
1163 UNSUPPORTED("asa1ffrrxd6dkzm1sdamgofuu"); // a[1].y = p.y - v.y;
1164 UNSUPPORTED("6rqmfaf4g98cg0t1qaax08e69"); // a[2].x = m.x - w.x;
1165 UNSUPPORTED("1nwyu905ao88kvq8pgnfwerf5"); // a[2].y = m.y - w.y;
1166 UNSUPPORTED("5yhpyznqsxb2ga5si6phvakqg"); // a[3].x = p.x;
1167 UNSUPPORTED("3eko75yr046fkm2yulawhw236"); // a[3].y = p.y;
1168 UNSUPPORTED("7nofpsbtwg78gooeo8makz5bb"); // a[4] = p;
1169 UNSUPPORTED("dl1jq9xglce6cfpe03mzu3p22"); // a[5].x = p.x;
1170 UNSUPPORTED("8kqrguezr1d2awpazfz88cw5"); // a[5].y = p.y;
1171 UNSUPPORTED("7byonl28yipw4lk1syuuj51it"); // a[6].x = m.x + w.x;
1172 UNSUPPORTED("lwb6vnlr2dq5ysijij21wbgl"); // a[6].y = m.y + w.y;
1173 UNSUPPORTED("egqlf021ldci9s31jrpk2m1pk"); // a[7].x = p.x + v.x;
1174 UNSUPPORTED("60b7k5jzqw1ndaxnese0cnx2t"); // a[7].y = p.y + v.y;
1175 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
1176 UNSUPPORTED("3kac8n2z06u2z5pqkm7c4z4nl"); // if (flag & (1<<(4+2)))
1177 UNSUPPORTED("8vyuq79k664wims1n1ltnudbt"); // gvrender_polygon(job, a, 6, 1);
1178 UNSUPPORTED("9i420px3t1z2sosclutiev22e"); // else if (flag & (1<<(4+3)))
1179 UNSUPPORTED("ap1vbm2kxsjtcp3pezwq2jwln"); // gvrender_polygon(job, &a[3], 6, 1);
1180 UNSUPPORTED("div10atae09n36x269sl208r1"); // else
1181 UNSUPPORTED("d0npn4cmn6nd0ytaww7u7ghrw"); // gvrender_polygon(job, a, 9, 1);
1182 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
1183
1184 throw new UnsupportedOperationException();
1185 }
1186
1187
1188
1189
1190 //3 e8w54seijyii7km6zl3sivjpu
1191 // static void arrow_type_gap(GVJ_t * job, pointf p, pointf u, double arrowsize, double penwidth, int flag)
1192 public static Object arrow_type_gap(Object... arg) {
1193 UNSUPPORTED("anlswsxb36i1znu2805bu47t2"); // static void arrow_type_gap(GVJ_t * job, pointf p, pointf u, double arrowsize, double penwidth, int flag)
1194 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
1195 UNSUPPORTED("brf7jajkh244o41ekaw2tyora"); // pointf q, a[2];
1196 UNSUPPORTED("eh1wtktxp1goqc7akjgyqf00j"); // q.x = p.x + u.x;
1197 UNSUPPORTED("3op9xoxcy2m0v7q790ta7f9hl"); // q.y = p.y + u.y;
1198 UNSUPPORTED("dhfgavaa2js7qt2ciwujmmrpv"); // a[0] = p;
1199 UNSUPPORTED("7b2bztb06255tydz21zauq8qq"); // a[1] = q;
1200 UNSUPPORTED("9hbag2bcttyxj9vas0kvof5qp"); // gvrender_polyline(job, a, 2);
1201 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
1202
1203 throw new UnsupportedOperationException();
1204 }
1205
1206
1207
1208
1209 //3 eg7sgk8umcqfthbo1t0plohbt
1210 // static void arrow_type_tee(GVJ_t * job, pointf p, pointf u, double arrowsize, double penwidth, int flag)
1211 public static Object arrow_type_tee(Object... arg) {
1212 UNSUPPORTED("9u6pwrzl9t5i0kfvnwn7uufrp"); // static void arrow_type_tee(GVJ_t * job, pointf p, pointf u, double arrowsize, double penwidth, int flag)
1213 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
1214 UNSUPPORTED("1hwyzphi1ihi2lx3engtta1qa"); // pointf m, n, q, v, a[4];
1215 UNSUPPORTED("e8sltpxlu9ln6k3zn49u46zau"); // v.x = -u.y;
1216 UNSUPPORTED("1wxxf464go09wrecpyo3y2k25"); // v.y = u.x;
1217 UNSUPPORTED("eh1wtktxp1goqc7akjgyqf00j"); // q.x = p.x + u.x;
1218 UNSUPPORTED("3op9xoxcy2m0v7q790ta7f9hl"); // q.y = p.y + u.y;
1219 UNSUPPORTED("61cj5vg96f8j145swk5v2nz5a"); // m.x = p.x + u.x * 0.2;
1220 UNSUPPORTED("25zmgst5hb9ya664up64k51tt"); // m.y = p.y + u.y * 0.2;
1221 UNSUPPORTED("9wrt18toae33nd3tmifyahyt8"); // n.x = p.x + u.x * 0.6;
1222 UNSUPPORTED("1151hzer2rx55qz715on0gexs"); // n.y = p.y + u.y * 0.6;
1223 UNSUPPORTED("4ihm8x9khys2bcoivyqzf4dth"); // a[0].x = m.x + v.x;
1224 UNSUPPORTED("941h30wfi9u1c17vhabko438l"); // a[0].y = m.y + v.y;
1225 UNSUPPORTED("7qtkiyjyg6pzhhoyslv8pmp1q"); // a[1].x = m.x - v.x;
1226 UNSUPPORTED("24iwwf6paxfgux41w93obhwp4"); // a[1].y = m.y - v.y;
1227 UNSUPPORTED("314g2i9mvbz4um5y7oiyuldvw"); // a[2].x = n.x - v.x;
1228 UNSUPPORTED("7ebhg7671hxu0useo7ewi26kn"); // a[2].y = n.y - v.y;
1229 UNSUPPORTED("8mc60oc3vsykq69a5zb6h72u4"); // a[3].x = n.x + v.x;
1230 UNSUPPORTED("6q0rldgbg1rfr4skqzq0v099f"); // a[3].y = n.y + v.y;
1231 UNSUPPORTED("9u73bl75ej5xy9pe46nac6ih5"); // if (flag & (1<<(4+2))) {
1232 UNSUPPORTED("6omh7vjmab159riw0fejjpwk0"); // a[0] = m;
1233 UNSUPPORTED("3w139dwzvrzrghf5w8hox1qen"); // a[3] = n;
1234 UNSUPPORTED("2u9qb4zvcio06wzd2nb3bjrs4"); // } else if (flag & (1<<(4+3))) {
1235 UNSUPPORTED("7g1lyxw6yo0ycv1l688mehedr"); // a[1] = m;
1236 UNSUPPORTED("72r460jtb2id4k8ri9sdwuqy4"); // a[2] = n;
1237 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
1238 UNSUPPORTED("15b4dosag4vcx31fnicxczw81"); // gvrender_polygon(job, a, 4, 1);
1239 UNSUPPORTED("dhfgavaa2js7qt2ciwujmmrpv"); // a[0] = p;
1240 UNSUPPORTED("7b2bztb06255tydz21zauq8qq"); // a[1] = q;
1241 UNSUPPORTED("9hbag2bcttyxj9vas0kvof5qp"); // gvrender_polyline(job, a, 2);
1242 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
1243
1244 throw new UnsupportedOperationException();
1245 }
1246
1247
1248
1249
1250 //3 3hdgy0baje1akb7fjw9yovjwz
1251 // static void arrow_type_box(GVJ_t * job, pointf p, pointf u, double arrowsize, double penwidth, int flag)
1252 public static Object arrow_type_box(Object... arg) {
1253 UNSUPPORTED("4u7yj9rhqxdonlyd5taprxs28"); // static void arrow_type_box(GVJ_t * job, pointf p, pointf u, double arrowsize, double penwidth, int flag)
1254 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
1255 UNSUPPORTED("5lmvyh791uemv9zn9qfakp4qb"); // pointf m, q, v, a[4];
1256 UNSUPPORTED("ep2toe83b4kkoeb00wqwru73t"); // v.x = -u.y * 0.4;
1257 UNSUPPORTED("8c686kltb5ewlt4qkf7ljmmc8"); // v.y = u.x * 0.4;
1258 UNSUPPORTED("66oe3r3caie8ddr9mgkqkk0r3"); // m.x = p.x + u.x * 0.8;
1259 UNSUPPORTED("1mowxzv768r12lzc4blbkl873"); // m.y = p.y + u.y * 0.8;
1260 UNSUPPORTED("eh1wtktxp1goqc7akjgyqf00j"); // q.x = p.x + u.x;
1261 UNSUPPORTED("3op9xoxcy2m0v7q790ta7f9hl"); // q.y = p.y + u.y;
1262 UNSUPPORTED("apz7b1n6lnsr7u47d661qkf7r"); // a[0].x = p.x + v.x;
1263 UNSUPPORTED("eqdvtg0j9avxbrpfozktn2358"); // a[0].y = p.y + v.y;
1264 UNSUPPORTED("f0vjjdkq6txr0nrc7xjvcxpa9"); // a[1].x = p.x - v.x;
1265 UNSUPPORTED("4e5dina8t36xvh3bfr8y98a9m"); // a[1].y = p.y - v.y;
1266 UNSUPPORTED("4npxatuz83si51hcyaeshl3x3"); // a[2].x = m.x - v.x;
1267 UNSUPPORTED("br2saagm87ysykkosh9e0xjab"); // a[2].y = m.y - v.y;
1268 UNSUPPORTED("8kb1ee4fjdywi21l0xydfefb4"); // a[3].x = m.x + v.x;
1269 UNSUPPORTED("coalhyxqy4kj07zi50yoc48fy"); // a[3].y = m.y + v.y;
1270 UNSUPPORTED("9u73bl75ej5xy9pe46nac6ih5"); // if (flag & (1<<(4+2))) {
1271 UNSUPPORTED("5fbtaluh9dcnwehl25ff3obkc"); // a[0] = p;
1272 UNSUPPORTED("9bjq8dynp7r5d7sbwtodjucxc"); // a[3] = m;
1273 UNSUPPORTED("2u9qb4zvcio06wzd2nb3bjrs4"); // } else if (flag & (1<<(4+3))) {
1274 UNSUPPORTED("e2cqpiig8ac96q5ovh3nyr7t1"); // a[1] = p;
1275 UNSUPPORTED("4uekqgdzqn4bhxlllod39w27b"); // a[2] = m;
1276 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
1277 UNSUPPORTED("7y7z0oxvzng5clk605r3p4zz8"); // gvrender_polygon(job, a, 4, !(flag & (1<<(4+0))));
1278 UNSUPPORTED("1p9lzfwbik1778u5gdeqpxm31"); // a[0] = m;
1279 UNSUPPORTED("7b2bztb06255tydz21zauq8qq"); // a[1] = q;
1280 UNSUPPORTED("9hbag2bcttyxj9vas0kvof5qp"); // gvrender_polyline(job, a, 2);
1281 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
1282
1283 throw new UnsupportedOperationException();
1284 }
1285
1286
1287
1288
1289 //3 equc1q4r6wcoe2pwwnk2u01og
1290 // static void arrow_type_diamond(GVJ_t * job, pointf p, pointf u, double arrowsize, double penwidth, int flag)
1291 public static Object arrow_type_diamond(Object... arg) {
1292 UNSUPPORTED("4wg2b1eyit9ve72uqrds41jk2"); // static void arrow_type_diamond(GVJ_t * job, pointf p, pointf u, double arrowsize, double penwidth, int flag)
1293 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
1294 UNSUPPORTED("7ww1c4ncz55av20zgtif7choz"); // pointf q, r, v, a[5];
1295 UNSUPPORTED("1xsjvcsxdwie2v666ry6ihghq"); // v.x = -u.y / 3.;
1296 UNSUPPORTED("9xea2lahdijfjgz0skow4ps5m"); // v.y = u.x / 3.;
1297 UNSUPPORTED("4p3vbsracdkwmi6dly3odymvb"); // r.x = p.x + u.x / 2.;
1298 UNSUPPORTED("7y5j7ecroy4fci5jzh6mk2sl9"); // r.y = p.y + u.y / 2.;
1299 UNSUPPORTED("eh1wtktxp1goqc7akjgyqf00j"); // q.x = p.x + u.x;
1300 UNSUPPORTED("3op9xoxcy2m0v7q790ta7f9hl"); // q.y = p.y + u.y;
1301 UNSUPPORTED("8n36qnwzpe2hugs30s3am1zsg"); // a[0] = a[4] = q;
1302 UNSUPPORTED("e97x8nztsokegzu9u2tgwssgi"); // a[1].x = r.x + v.x;
1303 UNSUPPORTED("3yv64xfvqgiyturtkz9pnkbtd"); // a[1].y = r.y + v.y;
1304 UNSUPPORTED("3isw1pofpfafh53xdqo1gmbrr"); // a[2] = p;
1305 UNSUPPORTED("655732redrvi9o3a3dyjh90af"); // a[3].x = r.x - v.x;
1306 UNSUPPORTED("55u2biopicz70n81k5ml5lzjp"); // a[3].y = r.y - v.y;
1307 UNSUPPORTED("3kac8n2z06u2z5pqkm7c4z4nl"); // if (flag & (1<<(4+2)))
1308 UNSUPPORTED("gu9pg6c0d0uzlztdiq2o96zh"); // gvrender_polygon(job, &a[2], 3, !(flag & (1<<(4+0))));
1309 UNSUPPORTED("9i420px3t1z2sosclutiev22e"); // else if (flag & (1<<(4+3)))
1310 UNSUPPORTED("52punwd4fhhq1arhez8cuwvam"); // gvrender_polygon(job, a, 3, !(flag & (1<<(4+0))));
1311 UNSUPPORTED("div10atae09n36x269sl208r1"); // else
1312 UNSUPPORTED("6qac6zmwtg6rwpmn73fq6poje"); // gvrender_polygon(job, a, 4, !(flag & (1<<(4+0))));
1313 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
1314
1315 throw new UnsupportedOperationException();
1316 }
1317
1318
1319
1320
1321 //3 dxl50r7ooipvtkyjb0sleittd
1322 // static void arrow_type_dot(GVJ_t * job, pointf p, pointf u, double arrowsize, double penwidth, int flag)
1323 public static Object arrow_type_dot(Object... arg) {
1324 UNSUPPORTED("bsrxktb5cvoy4qewxrb3z3ht"); // static void arrow_type_dot(GVJ_t * job, pointf p, pointf u, double arrowsize, double penwidth, int flag)
1325 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
1326 UNSUPPORTED("e077smjlsfuq1ptdwqpn7lcf0"); // double r;
1327 UNSUPPORTED("c1555k4n8zggr5m5nozuhequ8"); // pointf AF[2];
1328 UNSUPPORTED("9nadrv289g5ravobyhu05u9or"); // r = sqrt(u.x * u.x + u.y * u.y) / 2.;
1329 UNSUPPORTED("bxxvjt8g03vytuyx531n55b1g"); // AF[0].x = p.x + u.x / 2. - r;
1330 UNSUPPORTED("8lbe9l6h0hqnth5j5skwrhxx1"); // AF[0].y = p.y + u.y / 2. - r;
1331 UNSUPPORTED("1krebba2swwkp12jt15xqkjqd"); // AF[1].x = p.x + u.x / 2. + r;
1332 UNSUPPORTED("btubzlppo1x1284g7zu99lk03"); // AF[1].y = p.y + u.y / 2. + r;
1333 UNSUPPORTED("7mu57g14vmt1bdc523s4wiy22"); // gvrender_ellipse(job, AF, 2, !(flag & (1<<(4+0))));
1334 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
1335
1336 throw new UnsupportedOperationException();
1337 }
1338
1339
1340
1341
1342 //3 5oioemwdl3g1maj3ikzleo0nm
1343 // static void arrow_type_curve(GVJ_t* job, pointf p, pointf u, double arrowsize, double penwidth, int flag)
1344 public static Object arrow_type_curve(Object... arg) {
1345 UNSUPPORTED("2rt93fe18qb092yomrw5l6mko"); // static void arrow_type_curve(GVJ_t* job, pointf p, pointf u, double arrowsize, double penwidth, int flag)
1346 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
1347 UNSUPPORTED("7127v6bnaxe4g216ue7fn3fyp"); // double arrowwidth = penwidth > 4 ? 0.5 * penwidth / 4 : 0.5;
1348 UNSUPPORTED("euvu8ayo5swdxux8kyjmrywr5"); // pointf q, v, w;
1349 UNSUPPORTED("9jc1l9d43c00gutvyto6snss3"); // pointf AF[4], a[2];
1350 UNSUPPORTED("eh1wtktxp1goqc7akjgyqf00j"); // q.x = p.x + u.x;
1351 UNSUPPORTED("4qmtmdrrceo9h0mka0fkj5xci"); // q.y = p.y + u.y;
1352 UNSUPPORTED("bvibgke8hnjr9rlyzfdumk5w"); // v.x = -u.y * arrowwidth;
1353 UNSUPPORTED("c8xqr3hfd006yf1uuh47ndi71"); // v.y = u.x * arrowwidth;
1354 UNSUPPORTED("duqsnax25spvj38rnd9v32b4d"); // w.x = v.y; // same direction as u, same magnitude as v.
1355 UNSUPPORTED("4srsifkr8qc1viu2xijhnt66s"); // w.y = -v.x;
1356 UNSUPPORTED("dhfgavaa2js7qt2ciwujmmrpv"); // a[0] = p;
1357 UNSUPPORTED("7b2bztb06255tydz21zauq8qq"); // a[1] = q;
1358 UNSUPPORTED("11fvrbnzwbuar9l5gc9wurbor"); // AF[0].x = p.x + v.x + w.x;
1359 UNSUPPORTED("34xjxb9aaiworzwsfodegww0g"); // AF[0].y = p.y + v.y + w.y;
1360 UNSUPPORTED("73ax76wsls8wr2c86mm6umxkl"); // AF[3].x = p.x - v.x + w.x;
1361 UNSUPPORTED("7q0ly8njmscobyx3v5u7xb59c"); // AF[3].y = p.y - v.y + w.y;
1362 UNSUPPORTED("9qmj4a7f67dltmu1pte8pzqox"); // AF[1].x = p.x + 0.95 * v.x + w.x - w.x * 4.0 / 3.0;
1363 UNSUPPORTED("5spg9wtj9dwqh43yhk0dqfija"); // AF[1].y = AF[0].y - w.y * 4.0 / 3.0;
1364 UNSUPPORTED("ab3yikrvtlncw10ivdxvr4a52"); // AF[2].x = p.x - 0.95 * v.x + w.x - w.x * 4.0 / 3.0;
1365 UNSUPPORTED("45ok1xa7ia1ugs2o8ediwmd5p"); // AF[2].y = AF[3].y - w.y * 4.0 / 3.0;
1366 UNSUPPORTED("9hbag2bcttyxj9vas0kvof5qp"); // gvrender_polyline(job, a, 2);
1367 UNSUPPORTED("3kac8n2z06u2z5pqkm7c4z4nl"); // if (flag & (1<<(4+2)))
1368 UNSUPPORTED("58oum3y30wqa0bofgze20unn7"); // Bezier(AF, 3, 0.5, NULL, AF);
1369 UNSUPPORTED("9i420px3t1z2sosclutiev22e"); // else if (flag & (1<<(4+3)))
1370 UNSUPPORTED("8dngt8wih972oouawx4wska6k"); // Bezier(AF, 3, 0.5, AF, NULL);
1371 UNSUPPORTED("78tsqk66ihei67oy2ptr6t6f3"); // gvrender_beziercurve(job, AF, sizeof(AF) / sizeof(pointf), 0, 0, 0);
1372 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
1373
1374 throw new UnsupportedOperationException();
1375 }
1376
1377
1378
1379
1380 //3 ruebmb0rzoin79tmkp4o357x
1381 // static pointf arrow_gen_type(GVJ_t * job, pointf p, pointf u, double arrowsize, double penwidth, int flag)
1382 public static Object arrow_gen_type(Object... arg) {
1383 UNSUPPORTED("6eekmrou08qiz0zielzyhyn4g"); // static pointf arrow_gen_type(GVJ_t * job, pointf p, pointf u, double arrowsize, double penwidth, int flag)
1384 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
1385 UNSUPPORTED("9rrbht5x8qg377l1khejt2as2"); // int f;
1386 UNSUPPORTED("aed0rb6bb02eluj3o0ugcfqv9"); // arrowtype_t *arrowtype;
1387 UNSUPPORTED("ml2ttdehp7agi83yijbgk49r"); // f = flag & ((1 << 4) - 1);
1388 UNSUPPORTED("f036frj7aawxz98ctbodsj666"); // for (arrowtype = Arrowtypes; arrowtype->type; arrowtype++) {
1389 UNSUPPORTED("6qf8zxk5crelbhxfi42gd00l3"); // if (f == arrowtype->type) {
1390 UNSUPPORTED("epoo24e6zcp2uaje5ukce1yvh"); // u.x *= arrowtype->lenfact * arrowsize;
1391 UNSUPPORTED("bcfjvd5s3jub6wo9roe0xmn0g"); // u.y *= arrowtype->lenfact * arrowsize;
1392 UNSUPPORTED("5wc1a7bb8k1d528kxw2uchm7c"); // (arrowtype->gen) (job, p, u, arrowsize, penwidth, flag);
1393 UNSUPPORTED("3wwns14fz356e6p4s8byp3d6i"); // p.x = p.x + u.x;
1394 UNSUPPORTED("3rzld1v7nkscibpukz3bdox3v"); // p.y = p.y + u.y;
1395 UNSUPPORTED("ai3czg6gaaxspsmndknpyvuiu"); // break;
1396 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
1397 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
1398 UNSUPPORTED("91xduilalb406jjyw2g1i07th"); // return p;
1399 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
1400
1401 throw new UnsupportedOperationException();
1402 }
1403
1404
1405
1406
1407 //3 2u4vcl57jl62dmf8fy80ioppm
1408 // boxf arrow_bb(pointf p, pointf u, double arrowsize, int flag)
1409 public static Object arrow_bb(Object... arg) {
1410 UNSUPPORTED("67tfc7x1j056na7s6itymoeol"); // boxf arrow_bb(pointf p, pointf u, double arrowsize, int flag)
1411 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
1412 UNSUPPORTED("2fvgbj82ham8m0frx5hn9dyi"); // double s;
1413 UNSUPPORTED("2lzsl1e035wt5epd1h8f4bn8m"); // boxf bb;
1414 UNSUPPORTED("94ds3z1i0vt5rbv13ja90fdfp"); // double ax,ay,bx,by,cx,cy,dx,dy;
1415 UNSUPPORTED("6r1gp4hfea5imwnuiyfuxzh6k"); // double ux2, uy2;
1416 UNSUPPORTED("d5vh8if7unojun6hmulj4il7u"); // /* generate arrowhead vector */
1417 UNSUPPORTED("5yc3jb0utnnay4x88h644puhz"); // u.x -= p.x;
1418 UNSUPPORTED("egh8lzpdfrza6k11lopupxykp"); // u.y -= p.y;
1419 UNSUPPORTED("bh7ueu6dokefdmej3xz79c7ty"); // /* the EPSILONs are to keep this stable as length of u approaches 0.0 */
1420 UNSUPPORTED("3oao4fejxee2cop1fhd4m8tae"); // s = 10. * arrowsize / (sqrt(u.x * u.x + u.y * u.y) + .0001);
1421 UNSUPPORTED("8qxmhdlg9d49yg9gxkjw043"); // u.x += (u.x >= 0.0) ? .0001 : -.0001;
1422 UNSUPPORTED("4vxtvwh3x5b3i33sdyppe3trq"); // u.y += (u.y >= 0.0) ? .0001 : -.0001;
1423 UNSUPPORTED("bwi3f8xk8t2nbzy5tjtgeewjl"); // u.x *= s;
1424 UNSUPPORTED("do56zsbrbn95ovnoqu6zzjjmw"); // u.y *= s;
1425 UNSUPPORTED("alix1e6k9ywov3xxcwxcgo1hh"); // /* compute all 4 corners of rotated arrowhead bounding box */
1426 UNSUPPORTED("9bdmzamsx8jasbcfy2mk0v7yt"); // ux2 = u.x / 2.;
1427 UNSUPPORTED("3k8htwk7cas9gfe4j797zk3b"); // uy2 = u.y / 2.;
1428 UNSUPPORTED("ar2s2pmmxun5v6p0d4mlij1ro"); // ax = p.x - uy2;
1429 UNSUPPORTED("d9cpq1pbscjxjhkyi57s76o4r"); // ay = p.y - ux2;
1430 UNSUPPORTED("7m3bdjur8btdn3q1dzd4o751s"); // bx = p.x + uy2;
1431 UNSUPPORTED("bhn3rg0stek17iytsy7bgbwqw"); // by = p.y + ux2;
1432 UNSUPPORTED("ai8hjx4uwhzow4nolep1478xn"); // cx = ax + u.x;
1433 UNSUPPORTED("15l0cqg7njm4ebimncczi9uho"); // cy = ay + u.y;
1434 UNSUPPORTED("29117dcz6pcm4ibiebo4cemeh"); // dx = bx + u.x;
1435 UNSUPPORTED("7s3y5imd0u3woy1d0q58g1wlh"); // dy = by + u.y;
1436 UNSUPPORTED("7lzozmdnkd5c06cyxy2skrar5"); // /* compute a right bb */
1437 UNSUPPORTED("4shnxc3z5z4wj3l0pl7tml625"); // bb.UR.x = MAX(ax, MAX(bx, MAX(cx, dx)));
1438 UNSUPPORTED("2igw3asrvk13qlfbw4sgn7vxt"); // bb.UR.y = MAX(ay, MAX(by, MAX(cy, dy)));
1439 UNSUPPORTED("7fz9fiabx9i87t8t6bgjeso5a"); // bb.LL.x = MIN(ax, MIN(bx, MIN(cx, dx)));
1440 UNSUPPORTED("c6v20rdx0lfdvypx8l4tomnri"); // bb.LL.y = MIN(ay, MIN(by, MIN(cy, dy)));
1441 UNSUPPORTED("5v5hh30squmit8o2i5hs25eig"); // return bb;
1442 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
1443
1444 throw new UnsupportedOperationException();
1445 }
1446
1447
1448
1449
1450 //3 8ss8m9a0p5v0yx2oqggh0rx57
1451 // void arrow_gen(GVJ_t * job, emit_state_t emit_state, pointf p, pointf u, double arrowsize, double penwidth, int flag)
1452 public static Object arrow_gen(Object... arg) {
1453 UNSUPPORTED("ag73i6wbc5lb0d46ul40euyur"); // void arrow_gen(GVJ_t * job, emit_state_t emit_state, pointf p, pointf u, double arrowsize, double penwidth, int flag)
1454 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
1455 UNSUPPORTED("84llcpxtvxaggx841n2t03850"); // obj_state_t *obj = job->obj;
1456 UNSUPPORTED("2fvgbj82ham8m0frx5hn9dyi"); // double s;
1457 UNSUPPORTED("66oipfshtfj4imr4j2x2drib0"); // int i, f;
1458 UNSUPPORTED("ecr1y7qy0ikxkidkdfvwv88ir"); // emit_state_t old_emit_state;
1459 UNSUPPORTED("c3lqudp40feg72zp97ngqkww9"); // old_emit_state = obj->emit_state;
1460 UNSUPPORTED("3ook7gsw0rr7b6uwm9f5a5dtx"); // obj->emit_state = emit_state;
1461 UNSUPPORTED("exvy7jlggpvu1zhz08fo1jbvi"); // /* Dotted and dashed styles on the arrowhead are ugly (dds) */
1462 UNSUPPORTED("em34eidklzv0dobtybvgz9gwu"); // /* linewidth needs to be reset */
1463 UNSUPPORTED("4g8oyutwebzej18aaiz74zb9k"); // gvrender_set_style(job, job->gvc->defaultlinestyle);
1464 UNSUPPORTED("eertb1vvqryb308a1uuff8s0"); // gvrender_set_penwidth(job, penwidth);
1465 UNSUPPORTED("d5vh8if7unojun6hmulj4il7u"); // /* generate arrowhead vector */
1466 UNSUPPORTED("5yc3jb0utnnay4x88h644puhz"); // u.x -= p.x;
1467 UNSUPPORTED("egh8lzpdfrza6k11lopupxykp"); // u.y -= p.y;
1468 UNSUPPORTED("bh7ueu6dokefdmej3xz79c7ty"); // /* the EPSILONs are to keep this stable as length of u approaches 0.0 */
1469 UNSUPPORTED("9s182w6wdwxo0pwu9hljlyofe"); // s = 10. / (sqrt(u.x * u.x + u.y * u.y) + .0001);
1470 UNSUPPORTED("8qxmhdlg9d49yg9gxkjw043"); // u.x += (u.x >= 0.0) ? .0001 : -.0001;
1471 UNSUPPORTED("4vxtvwh3x5b3i33sdyppe3trq"); // u.y += (u.y >= 0.0) ? .0001 : -.0001;
1472 UNSUPPORTED("bwi3f8xk8t2nbzy5tjtgeewjl"); // u.x *= s;
1473 UNSUPPORTED("do56zsbrbn95ovnoqu6zzjjmw"); // u.y *= s;
1474 UNSUPPORTED("3zei0bi63grn37qiuxn09n7hz"); // /* the first arrow head - closest to node */
1475 UNSUPPORTED("a2n8aqfq0cqpx8elstmfn9oq6"); // for (i = 0; i < 4; i++) {
1476 UNSUPPORTED("8sgyt5ym5jt73oknb4tdj2zpl"); // f = (flag >> (i * 8)) & ((1 << 8) - 1);
1477 UNSUPPORTED("5vg3retgvi5ekir9xbw8j4zoq"); // if (f == (0))
1478 UNSUPPORTED("ai3czg6gaaxspsmndknpyvuiu"); // break;
1479 UNSUPPORTED("biq7xz2uj7ksjrqn6tqr9glzj"); // p = arrow_gen_type(job, p, u, arrowsize, penwidth, f);
1480 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
1481 UNSUPPORTED("b1bkq4eyrmepbxyb3qiuhi8b8"); // obj->emit_state = old_emit_state;
1482 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
1483
1484 throw new UnsupportedOperationException();
1485 }
1486
1487
1488 }