Debian Codegraph @

src/gen/lib/common/geom__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.JUtilsDebug.ENTERING;
48 import static smetana.core.JUtilsDebug.LEAVING;
49 import static smetana.core.Macro.UNSUPPORTED;
50 import h.ST_pointf;
51
52 public class geom__c {
53
54
55 //3 ciez0pfggxdljedzsbklq49f0
56 // static inline point pointof(int x, int y)
57 public static Object pointof(Object... arg) {
58 UNSUPPORTED("8e4tj258yvfq5uhsdpk37n5eq"); // static inline point pointof(int x, int y)
59 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
60 UNSUPPORTED("c0j3k9xv06332q98k2pgpacto"); // point r;
61 UNSUPPORTED("12jimkrzqxavaie0cpapbx18c"); // r.x = x;
62 UNSUPPORTED("7ivmviysahgsc5nn9gtp7q2if"); // r.y = y;
63 UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); // return r;
64 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
65
66 throw new UnsupportedOperationException();
67 }
68
69
70
71
72 //3 c1s4k85p1cdfn176o3uryeros
73 // static inline pointf pointfof(double x, double y)
74 public static ST_pointf pointfof(double x, double y) {
75 // WARNING!! STRUCT
76 return pointfof_w_(x, y).copy();
77 }
78 private static ST_pointf pointfof_w_(double x, double y) {
79 ENTERING("c1s4k85p1cdfn176o3uryeros","pointfof");
80 try {
81 final ST_pointf r = new ST_pointf();
82 r.setDouble("x", x);
83 r.setDouble("y", y);
84 return r;
85 } finally {
86 LEAVING("c1s4k85p1cdfn176o3uryeros","pointfof");
87 }
88 }
89
90
91
92
93 //3 7cufnfitrh935ew093mw0i4b7
94 // static inline box boxof(int llx, int lly, int urx, int ury)
95 public static Object boxof(Object... arg) {
96 UNSUPPORTED("3lzesfdd337h31jrlib1czocm"); // static inline box boxof(int llx, int lly, int urx, int ury)
97 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
98 UNSUPPORTED("52u27kayecy1i1e8bbo8f7s9r"); // box b;
99 UNSUPPORTED("cylhjlutoc0sc0uy7g98m9fb8"); // b.LL.x = llx, b.LL.y = lly;
100 UNSUPPORTED("242of6revxzx8hpe7yerrchz6"); // b.UR.x = urx, b.UR.y = ury;
101 UNSUPPORTED("2vmm1j57brhn455f8f3iyw6mo"); // return b;
102 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
103
104 throw new UnsupportedOperationException();
105 }
106
107
108
109
110
111
112
113
114 //3 1n5xl70wxuabyf97mclvilsm6
115 // static inline point add_point(point p, point q)
116 public static Object add_point(Object... arg) {
117 UNSUPPORTED("6iamka1fx8fk1rohzzse8phte"); // static inline point add_point(point p, point q)
118 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
119 UNSUPPORTED("c0j3k9xv06332q98k2pgpacto"); // point r;
120 UNSUPPORTED("3n2sizjd0civbzm6iq7su1s2p"); // r.x = p.x + q.x;
121 UNSUPPORTED("65ygdo31w09i5i6bd2f7azcd3"); // r.y = p.y + q.y;
122 UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); // return r;
123 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
124
125 throw new UnsupportedOperationException();
126 }
127
128
129
130
131 //3 arrsbik9b5tnfcbzsm8gr2chx
132 // static inline pointf add_pointf(pointf p, pointf q)
133 public static ST_pointf add_pointf(final ST_pointf p, final ST_pointf q) {
134 // WARNING!! STRUCT
135 return add_pointf_w_(p.copy(), q.copy()).copy();
136 }
137 private static ST_pointf add_pointf_w_(final ST_pointf p, final ST_pointf q) {
138 ENTERING("arrsbik9b5tnfcbzsm8gr2chx","add_pointf");
139 try {
140 final ST_pointf r = new ST_pointf();
141 r.setDouble("x", p.x + q.x);
142 r.setDouble("y", p.y + q.y);
143 return r;
144 } finally {
145 LEAVING("arrsbik9b5tnfcbzsm8gr2chx","add_pointf");
146 }
147 }
148
149
150
151
152 //3 ai2dprak5y6obdsflguh5qbd7
153 // static inline point sub_point(point p, point q)
154 public static Object sub_point(Object... arg) {
155 UNSUPPORTED("cd602849h0bce8lu9xegka0ia"); // static inline point sub_point(point p, point q)
156 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
157 UNSUPPORTED("c0j3k9xv06332q98k2pgpacto"); // point r;
158 UNSUPPORTED("4q4q9dveah93si8ajfv59gz27"); // r.x = p.x - q.x;
159 UNSUPPORTED("9f90ik0o2yqhanzntpy3d2ydy"); // r.y = p.y - q.y;
160 UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); // return r;
161 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
162
163 throw new UnsupportedOperationException();
164 }
165
166
167
168
169 //3 16f6pyogcv3j7n2p0n8giqqgh
170 // static inline pointf sub_pointf(pointf p, pointf q)
171 public static Object sub_pointf(Object... arg) {
172 UNSUPPORTED("dmufj44lddsnj0wjyxsg2fcso"); // static inline pointf sub_pointf(pointf p, pointf q)
173 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
174 UNSUPPORTED("cvexv13y9fq49v0j4d5t4cm9f"); // pointf r;
175 UNSUPPORTED("4q4q9dveah93si8ajfv59gz27"); // r.x = p.x - q.x;
176 UNSUPPORTED("9f90ik0o2yqhanzntpy3d2ydy"); // r.y = p.y - q.y;
177 UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); // return r;
178 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
179
180 throw new UnsupportedOperationException();
181 }
182
183
184
185
186 //3 9k50jgrhc4f9824vf8ony74rw
187 // static inline point mid_point(point p, point q)
188 public static Object mid_point(Object... arg) {
189 UNSUPPORTED("evy44tdsmu3erff9dp2x835u2"); // static inline point mid_point(point p, point q)
190 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
191 UNSUPPORTED("c0j3k9xv06332q98k2pgpacto"); // point r;
192 UNSUPPORTED("1a6p6fm57o0wt5ze2btsx06c7"); // r.x = (p.x + q.x) / 2;
193 UNSUPPORTED("1kbj5tgdmfi6kf4jgg6skhr6e"); // r.y = (p.y + q.y) / 2;
194 UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); // return r;
195 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
196
197 throw new UnsupportedOperationException();
198 }
199
200
201
202
203 //3 59c4f7im0ftyowhnzzq2v9o1x
204 // static inline pointf mid_pointf(pointf p, pointf q)
205 public static Object mid_pointf(Object... arg) {
206 UNSUPPORTED("381o63o9kb04d7gzg65v0r3q"); // static inline pointf mid_pointf(pointf p, pointf q)
207 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
208 UNSUPPORTED("cvexv13y9fq49v0j4d5t4cm9f"); // pointf r;
209 UNSUPPORTED("c5vboetlr3mf43wns7iik6m1w"); // r.x = (p.x + q.x) / 2.;
210 UNSUPPORTED("bcdf562ldr3bjn78hcay5xd63"); // r.y = (p.y + q.y) / 2.;
211 UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); // return r;
212 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
213
214 throw new UnsupportedOperationException();
215 }
216
217
218
219
220 //3 5r18p38gisvcx3zsvbb9saixx
221 // static inline pointf interpolate_pointf(double t, pointf p, pointf q)
222 public static Object interpolate_pointf(Object... arg) {
223 UNSUPPORTED("894yimn33kmtm454llwdaotu8"); // static inline pointf interpolate_pointf(double t, pointf p, pointf q)
224 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
225 UNSUPPORTED("ef2acl8wa2ooqcb5vz3098maz"); // pointf r;
226 UNSUPPORTED("5tpwuyf5iidesy80v8o4nwkmk"); // r.x = p.x + t * (q.x - p.x);
227 UNSUPPORTED("ewnrc5uloj3w5jbmsjcn3wja0"); // r.y = p.y + t * (q.y - p.y);
228 UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); // return r;
229 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
230
231 throw new UnsupportedOperationException();
232 }
233
234
235
236
237 //3 bxzrv2ghq04qk5cbyy68s4mol
238 // static inline point exch_xy(point p)
239 public static Object exch_xy(Object... arg) {
240 UNSUPPORTED("2vxya0v2fzlv5e0vjaa8d414"); // static inline point exch_xy(point p)
241 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
242 UNSUPPORTED("c0j3k9xv06332q98k2pgpacto"); // point r;
243 UNSUPPORTED("60cojdwc2h7f0m51s9jdwvup7"); // r.x = p.y;
244 UNSUPPORTED("evp2x66oa4s1tlnc0ytxq2qbq"); // r.y = p.x;
245 UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); // return r;
246 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
247
248 throw new UnsupportedOperationException();
249 }
250
251
252
253
254 //3 9lt3e03tac6h6sydljrcws8fd
255 // static inline pointf exch_xyf(pointf p)
256 public static Object exch_xyf(Object... arg) {
257 UNSUPPORTED("8qamrobrqi8jsvvfrxkimrsnw"); // static inline pointf exch_xyf(pointf p)
258 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
259 UNSUPPORTED("cvexv13y9fq49v0j4d5t4cm9f"); // pointf r;
260 UNSUPPORTED("60cojdwc2h7f0m51s9jdwvup7"); // r.x = p.y;
261 UNSUPPORTED("evp2x66oa4s1tlnc0ytxq2qbq"); // r.y = p.x;
262 UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); // return r;
263 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
264
265 throw new UnsupportedOperationException();
266 }
267
268
269
270
271 //3 8l9qhieokthntzdorlu5zn29b
272 // static inline box box_bb(box b0, box b1)
273 public static Object box_bb(Object... arg) {
274 UNSUPPORTED("36et5gmnjrby6o7bq9sgh1hx6"); // static inline box box_bb(box b0, box b1)
275 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
276 UNSUPPORTED("52u27kayecy1i1e8bbo8f7s9r"); // box b;
277 UNSUPPORTED("8mr2c9xitsqi8z1plbp7ox1hu"); // b.LL.x = MIN(b0.LL.x, b1.LL.x);
278 UNSUPPORTED("2egu55ef4u1i03nwz01k7kcrl"); // b.LL.y = MIN(b0.LL.y, b1.LL.y);
279 UNSUPPORTED("9n6ei3odbgefwfxvql9whcpe"); // b.UR.x = MAX(b0.UR.x, b1.UR.x);
280 UNSUPPORTED("19ocysbuh4pxyft2bqhyhigr1"); // b.UR.y = MAX(b0.UR.y, b1.UR.y);
281 UNSUPPORTED("2vmm1j57brhn455f8f3iyw6mo"); // return b;
282 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
283
284 throw new UnsupportedOperationException();
285 }
286
287
288
289
290 //3 clws9h3bbjm0lw3hexf8nl4c4
291 // static inline boxf boxf_bb(boxf b0, boxf b1)
292 public static Object boxf_bb(Object... arg) {
293 UNSUPPORTED("dyrqu4ww9osr9c86gqgmifcp6"); // static inline boxf boxf_bb(boxf b0, boxf b1)
294 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
295 UNSUPPORTED("c57pq0f87j6dnbcvygu7v6k84"); // boxf b;
296 UNSUPPORTED("8mr2c9xitsqi8z1plbp7ox1hu"); // b.LL.x = MIN(b0.LL.x, b1.LL.x);
297 UNSUPPORTED("2egu55ef4u1i03nwz01k7kcrl"); // b.LL.y = MIN(b0.LL.y, b1.LL.y);
298 UNSUPPORTED("9n6ei3odbgefwfxvql9whcpe"); // b.UR.x = MAX(b0.UR.x, b1.UR.x);
299 UNSUPPORTED("19ocysbuh4pxyft2bqhyhigr1"); // b.UR.y = MAX(b0.UR.y, b1.UR.y);
300 UNSUPPORTED("2vmm1j57brhn455f8f3iyw6mo"); // return b;
301 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
302
303 throw new UnsupportedOperationException();
304 }
305
306
307
308
309 //3 bit6ycxo1iqd2al92y8gkzlvb
310 // static inline box box_intersect(box b0, box b1)
311 public static Object box_intersect(Object... arg) {
312 UNSUPPORTED("34gv28cldst09bl71itjgviue"); // static inline box box_intersect(box b0, box b1)
313 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
314 UNSUPPORTED("52u27kayecy1i1e8bbo8f7s9r"); // box b;
315 UNSUPPORTED("9slu7bixuymxttjic76ha2nl2"); // b.LL.x = MAX(b0.LL.x, b1.LL.x);
316 UNSUPPORTED("3uv943c2f82yuif249pf5azob"); // b.LL.y = MAX(b0.LL.y, b1.LL.y);
317 UNSUPPORTED("74tf5h16bc9zabq3s3dyny543"); // b.UR.x = MIN(b0.UR.x, b1.UR.x);
318 UNSUPPORTED("d99gcv3i7xes7y7rqf8ii20ux"); // b.UR.y = MIN(b0.UR.y, b1.UR.y);
319 UNSUPPORTED("2vmm1j57brhn455f8f3iyw6mo"); // return b;
320 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
321
322 throw new UnsupportedOperationException();
323 }
324
325
326
327
328 //3 8gfybie7k6pgb3o1a6llgpwng
329 // static inline boxf boxf_intersect(boxf b0, boxf b1)
330 public static Object boxf_intersect(Object... arg) {
331 UNSUPPORTED("ape22b8z6jfg17gvo42hok9eb"); // static inline boxf boxf_intersect(boxf b0, boxf b1)
332 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
333 UNSUPPORTED("c57pq0f87j6dnbcvygu7v6k84"); // boxf b;
334 UNSUPPORTED("9slu7bixuymxttjic76ha2nl2"); // b.LL.x = MAX(b0.LL.x, b1.LL.x);
335 UNSUPPORTED("3uv943c2f82yuif249pf5azob"); // b.LL.y = MAX(b0.LL.y, b1.LL.y);
336 UNSUPPORTED("74tf5h16bc9zabq3s3dyny543"); // b.UR.x = MIN(b0.UR.x, b1.UR.x);
337 UNSUPPORTED("d99gcv3i7xes7y7rqf8ii20ux"); // b.UR.y = MIN(b0.UR.y, b1.UR.y);
338 UNSUPPORTED("2vmm1j57brhn455f8f3iyw6mo"); // return b;
339 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
340
341 throw new UnsupportedOperationException();
342 }
343
344
345
346
347 //3 7z8j2quq65govaaejrz7b4cvb
348 // static inline int box_overlap(box b0, box b1)
349 public static Object box_overlap(Object... arg) {
350 UNSUPPORTED("1e9k599x7ygct7r4cfdxlk9u9"); // static inline int box_overlap(box b0, box b1)
351 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
352 UNSUPPORTED("7a9wwpu7dhdphd08y1ecw54w5"); // return OVERLAP(b0, b1);
353 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
354
355 throw new UnsupportedOperationException();
356 }
357
358
359
360
361 //3 4z0suuut2acsay5m8mg9dqjdu
362 // static inline int boxf_overlap(boxf b0, boxf b1)
363 public static Object boxf_overlap(Object... arg) {
364 UNSUPPORTED("905nejsewihwhhc3bhnrz9nwo"); // static inline int boxf_overlap(boxf b0, boxf b1)
365 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
366 UNSUPPORTED("7a9wwpu7dhdphd08y1ecw54w5"); // return OVERLAP(b0, b1);
367 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
368
369 throw new UnsupportedOperationException();
370 }
371
372
373
374
375 //3 dd34swz5rmdgu3a2np2a4h1dy
376 // static inline int box_contains(box b0, box b1)
377 public static Object box_contains(Object... arg) {
378 UNSUPPORTED("aputfc30fjkvy6jx4otljaczq"); // static inline int box_contains(box b0, box b1)
379 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
380 UNSUPPORTED("87ap80vrh2a4gpprbxr33lrg3"); // return CONTAINS(b0, b1);
381 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
382
383 throw new UnsupportedOperationException();
384 }
385
386
387
388
389 //3 8laj1bspbu2i1cjd9upr7xt32
390 // static inline int boxf_contains(boxf b0, boxf b1)
391 public static Object boxf_contains(Object... arg) {
392 UNSUPPORTED("7ccnttkiwt834yfyw0evcm18v"); // static inline int boxf_contains(boxf b0, boxf b1)
393 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
394 UNSUPPORTED("87ap80vrh2a4gpprbxr33lrg3"); // return CONTAINS(b0, b1);
395 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
396
397 throw new UnsupportedOperationException();
398 }
399
400
401
402
403 //3 4wf5swkz24xx51ja2dynbycu1
404 // static inline pointf perp (pointf p)
405 public static Object perp(Object... arg) {
406 UNSUPPORTED("567wpqlg9rv63ynyvxd9sgkww"); // static inline pointf perp (pointf p)
407 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
408 UNSUPPORTED("cvexv13y9fq49v0j4d5t4cm9f"); // pointf r;
409 UNSUPPORTED("2fyydy6t6yifjsczccsb9szeg"); // r.x = -p.y;
410 UNSUPPORTED("evp2x66oa4s1tlnc0ytxq2qbq"); // r.y = p.x;
411 UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); // return r;
412 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
413
414 throw new UnsupportedOperationException();
415 }
416
417
418
419
420 //3 6dtlpzv4mvgzb9o0b252yweuv
421 // static inline pointf scale (double c, pointf p)
422 public static Object scale(Object... arg) {
423 UNSUPPORTED("c1ngytew34bmkdb7vps5h3dh8"); // static inline pointf scale (double c, pointf p)
424 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
425 UNSUPPORTED("cvexv13y9fq49v0j4d5t4cm9f"); // pointf r;
426 UNSUPPORTED("dznf7nac14snww4usquyd6r3r"); // r.x = c * p.x;
427 UNSUPPORTED("33kk73m8vjcux5tnjl8co2pe6"); // r.y = c * p.y;
428 UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); // return r;
429 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
430
431 throw new UnsupportedOperationException();
432 }
433
434
435
436
437 //3 an3osr8wbab08w759hwbbqhm9
438 // box mkbox(point p, point q)
439 public static Object mkbox(Object... arg) {
440 UNSUPPORTED("ehmvylmllzguxcdpk8dz6hwdr"); // box mkbox(point p, point q)
441 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
442 UNSUPPORTED("dmq8mehh6aeppnudj702vldy4"); // box r;
443 UNSUPPORTED("56irj1ii7mntnpbge097ptnng"); // if (p.x < q.x) {
444 UNSUPPORTED("b8tp7wn90qjwecr4yhm0dif1i"); // r.LL.x = p.x;
445 UNSUPPORTED("2tgz3b5tfwtlyh39flhnyaipw"); // r.UR.x = q.x;
446 UNSUPPORTED("c07up7zvrnu2vhzy6d7zcu94g"); // } else {
447 UNSUPPORTED("6jbrv8d8fjois445uwa6y61uz"); // r.LL.x = q.x;
448 UNSUPPORTED("crijm4pj4imiocb7jzikn2xj5"); // r.UR.x = p.x;
449 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
450 UNSUPPORTED("92wx79b4ryvutf9j0365jonq"); // if (p.y < q.y) {
451 UNSUPPORTED("9oisw44o8np9dsov1namsahq2"); // r.LL.y = p.y;
452 UNSUPPORTED("dq93klswmrh70fos28v81um3n"); // r.UR.y = q.y;
453 UNSUPPORTED("c07up7zvrnu2vhzy6d7zcu94g"); // } else {
454 UNSUPPORTED("aveby33ojiwj4tjoar3jn215s"); // r.LL.y = q.y;
455 UNSUPPORTED("4sjpslco78l4c28t6hrci8g8v"); // r.UR.y = p.y;
456 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
457 UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); // return r;
458 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
459
460 throw new UnsupportedOperationException();
461 }
462
463
464
465
466 //3 2c7s1wgyibdpn3cqrdci4mqwj
467 // boxf mkboxf(pointf p, pointf q)
468 public static Object mkboxf(Object... arg) {
469 UNSUPPORTED("6axbrwdhhyfo8coxq5s27j6ph"); // boxf mkboxf(pointf p, pointf q)
470 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
471 UNSUPPORTED("c8ehlu3p9fgdawb34kesn3k9m"); // boxf r;
472 UNSUPPORTED("56irj1ii7mntnpbge097ptnng"); // if (p.x < q.x) {
473 UNSUPPORTED("b8tp7wn90qjwecr4yhm0dif1i"); // r.LL.x = p.x;
474 UNSUPPORTED("2tgz3b5tfwtlyh39flhnyaipw"); // r.UR.x = q.x;
475 UNSUPPORTED("c07up7zvrnu2vhzy6d7zcu94g"); // } else {
476 UNSUPPORTED("6jbrv8d8fjois445uwa6y61uz"); // r.LL.x = q.x;
477 UNSUPPORTED("crijm4pj4imiocb7jzikn2xj5"); // r.UR.x = p.x;
478 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
479 UNSUPPORTED("92wx79b4ryvutf9j0365jonq"); // if (p.y < q.y) {
480 UNSUPPORTED("9oisw44o8np9dsov1namsahq2"); // r.LL.y = p.y;
481 UNSUPPORTED("dq93klswmrh70fos28v81um3n"); // r.UR.y = q.y;
482 UNSUPPORTED("c07up7zvrnu2vhzy6d7zcu94g"); // } else {
483 UNSUPPORTED("aveby33ojiwj4tjoar3jn215s"); // r.LL.y = q.y;
484 UNSUPPORTED("4sjpslco78l4c28t6hrci8g8v"); // r.UR.y = p.y;
485 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
486 UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); // return r;
487 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
488
489 throw new UnsupportedOperationException();
490 }
491
492
493
494
495 //3 29pnbvw6n2yoezie6xudgnrrc
496 // int lineToBox(pointf p, pointf q, boxf b)
497 public static Object lineToBox(Object... arg) {
498 UNSUPPORTED("4yjnf6y95sbc4ugjerul6vk9m"); // int lineToBox(pointf p, pointf q, boxf b)
499 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
500 UNSUPPORTED("48cwacl32769puml63lq5tx4b"); // int inside1, inside2;
501 UNSUPPORTED("9gsgfs2guis9c3c3oi57mxpq2"); // /*
502 UNSUPPORTED("b5pw9v7zbg2sz0vvg6onzk3hw"); // * First check the two points individually to see whether they
503 UNSUPPORTED("caais2dj0scdtrf20ixk47dfa"); // * are inside the rectangle or not.
504 UNSUPPORTED("795vpnc8yojryr8b46aidsu69"); // */
505 UNSUPPORTED("cq0b826r85o6zz8ne0szl8yyk"); // inside1 = (p.x >= b.LL.x) && (p.x <= b.UR.x)
506 UNSUPPORTED("1gflq8j7hbpz9170ekhci7yn8"); // && (p.y >= b.LL.y) && (p.y <= b.UR.y);
507 UNSUPPORTED("bhzozbp5l936vg1gyqwuk4dx6"); // inside2 = (q.x >= b.LL.x) && (q.x <= b.UR.x)
508 UNSUPPORTED("ct5vd0ytj5rjcrp2gpt8pkonc"); // && (q.y >= b.LL.y) && (q.y <= b.UR.y);
509 UNSUPPORTED("ehkoqnyo9hihgs7jeo4qoysve"); // if (inside1 != inside2) {
510 UNSUPPORTED("egywkvzo2t847qnathqnanvcj"); // return 0;
511 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
512 UNSUPPORTED("bmhand7n0jwpq7eue899h1p1f"); // if (inside1 & inside2) {
513 UNSUPPORTED("3ywpya2w1bf4n909xcgre9wyy"); // return 1;
514 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
515 UNSUPPORTED("9gsgfs2guis9c3c3oi57mxpq2"); // /*
516 UNSUPPORTED("4nkuw4roujcsqvbd2p9xdxitb"); // * Both points are outside the rectangle, but still need to check
517 UNSUPPORTED("aminyyg03u6tufsuefljc9ckh"); // * for intersections between the line and the rectangle. Horizontal
518 UNSUPPORTED("6l0cqsf2f98o3thcqrs8isnnk"); // * and vertical lines are particularly easy, so handle them
519 UNSUPPORTED("7q484vtovilvh9k2g9clt86ne"); // * separately.
520 UNSUPPORTED("795vpnc8yojryr8b46aidsu69"); // */
521 UNSUPPORTED("2hgj2jk4zufho793ru5xo96qn"); // if (p.x == q.x) {
522 UNSUPPORTED("ap75hs54mf8uwlaksz3dq3q89"); // /*
523 UNSUPPORTED("aw25rbwlb76hcmi7i0a4hkroq"); // * Vertical line.
524 UNSUPPORTED("3vesx4cskuo1q42jvwmoum2xs"); // */
525 UNSUPPORTED("5x1j3sw3kiwvrlq7iovu7p1zg"); // if (((p.y >= b.LL.y) ^ (q.y >= b.LL.y))
526 UNSUPPORTED("8z5rdz2i2k4vnxh41xau7lqox"); // && (p.x >= b.LL.x)
527 UNSUPPORTED("8sa26clzml2fktszuyohhq96s"); // && (p.x <= b.UR.x)) {
528 UNSUPPORTED("7opo20y2y6rg5i89ocvk6qi3c"); // return 0;
529 UNSUPPORTED("4mhlpjofolwivhm0tl8cxznly"); // }
530 UNSUPPORTED("aypua15gtzlgyfgij2zgi2fy3"); // } else if (p.y == q.y) {
531 UNSUPPORTED("ap75hs54mf8uwlaksz3dq3q89"); // /*
532 UNSUPPORTED("cuvbkbznqopg3ock0vwua52e"); // * Horizontal line.
533 UNSUPPORTED("3vesx4cskuo1q42jvwmoum2xs"); // */
534 UNSUPPORTED("cr98tmonigesw5kgv445eaagx"); // if (((p.x >= b.LL.x) ^ (q.x >= b.LL.x))
535 UNSUPPORTED("7moqrnwj9gzn15xyb4n1h71nz"); // && (p.y >= b.LL.y)
536 UNSUPPORTED("adozfrtcv9rz4ut26t65aqjmp"); // && (p.y <= b.UR.y)) {
537 UNSUPPORTED("7opo20y2y6rg5i89ocvk6qi3c"); // return 0;
538 UNSUPPORTED("4mhlpjofolwivhm0tl8cxznly"); // }
539 UNSUPPORTED("c07up7zvrnu2vhzy6d7zcu94g"); // } else {
540 UNSUPPORTED("3dx5qy44ca9k65rrlunknc4jr"); // double m, x, y, low, high;
541 UNSUPPORTED("ap75hs54mf8uwlaksz3dq3q89"); // /*
542 UNSUPPORTED("17rosazxzae3vpa7evezmoc18"); // * Diagonal line. Compute slope of line and use
543 UNSUPPORTED("38f61i9iz6jnzq3tqj3l15io"); // * for intersection checks against each of the
544 UNSUPPORTED("24s7erxhfmz9equ6bz65nd452"); // * sides of the rectangle: left, right, bottom, top.
545 UNSUPPORTED("3vesx4cskuo1q42jvwmoum2xs"); // */
546 UNSUPPORTED("30gqvlvlxk2fyms9obiav5eld"); // m = (q.y - p.y)/(q.x - p.x);
547 UNSUPPORTED("bydrxw4l4bbi1q3tpzpouyb05"); // if (p.x < q.x) {
548 UNSUPPORTED("3vk3thjtlk0eg13l7tpn464hf"); // low = p.x; high = q.x;
549 UNSUPPORTED("7g575y36b78djy0o00izqx7eq"); // } else {
550 UNSUPPORTED("9kxzbc22yz2m5undmp2d8iv7i"); // low = q.x; high = p.x;
551 UNSUPPORTED("4mhlpjofolwivhm0tl8cxznly"); // }
552 UNSUPPORTED("ap75hs54mf8uwlaksz3dq3q89"); // /*
553 UNSUPPORTED("8iz5exp7hmnagqdgln48v9h3c"); // * Left edge.
554 UNSUPPORTED("3vesx4cskuo1q42jvwmoum2xs"); // */
555 UNSUPPORTED("1kvmnzix9327sc1lr8oldfwfa"); // y = p.y + (b.LL.x - p.x)*m;
556 UNSUPPORTED("6mt68el60h3098f84p9qof9cp"); // if ((b.LL.x >= low) && (b.LL.x <= high)
557 UNSUPPORTED("7fuiowax7i86a2628diixw0kg"); // && (y >= b.LL.y) && (y <= b.UR.y)) {
558 UNSUPPORTED("7opo20y2y6rg5i89ocvk6qi3c"); // return 0;
559 UNSUPPORTED("4mhlpjofolwivhm0tl8cxznly"); // }
560 UNSUPPORTED("ap75hs54mf8uwlaksz3dq3q89"); // /*
561 UNSUPPORTED("cqsjfoaczly4orr3aoyk6a3kn"); // * Right edge.
562 UNSUPPORTED("3vesx4cskuo1q42jvwmoum2xs"); // */
563 UNSUPPORTED("8ix32dk9v0hahcbsbusuf1rvs"); // y += (b.UR.x - b.LL.x)*m;
564 UNSUPPORTED("brui2iilj0qz4n9w80cckznor"); // if ((y >= b.LL.y) && (y <= b.UR.y)
565 UNSUPPORTED("9lghx6zht8yyj8oo7vd3urxb0"); // && (b.UR.x >= low) && (b.UR.x <= high)) {
566 UNSUPPORTED("7opo20y2y6rg5i89ocvk6qi3c"); // return 0;
567 UNSUPPORTED("4mhlpjofolwivhm0tl8cxznly"); // }
568 UNSUPPORTED("ap75hs54mf8uwlaksz3dq3q89"); // /*
569 UNSUPPORTED("9k6j1wl5s3bvhlivy6qc3xt6b"); // * Bottom edge.
570 UNSUPPORTED("3vesx4cskuo1q42jvwmoum2xs"); // */
571 UNSUPPORTED("32eo9bh3jk75sopl737la1xiu"); // if (p.y < q.y) {
572 UNSUPPORTED("dpom6twg5z6ngi160zl4sbdfy"); // low = p.y; high = q.y;
573 UNSUPPORTED("7g575y36b78djy0o00izqx7eq"); // } else {
574 UNSUPPORTED("9n0a69t2iof5xbu1u5knw8v5e"); // low = q.y; high = p.y;
575 UNSUPPORTED("4mhlpjofolwivhm0tl8cxznly"); // }
576 UNSUPPORTED("balzrwlwsv6rnon3m0ey2ftly"); // x = p.x + (b.LL.y - p.y)/m;
577 UNSUPPORTED("d93289lj2vrieguknwyq7vizz"); // if ((x >= b.LL.x) && (x <= b.UR.x)
578 UNSUPPORTED("2pou8in6puryywhwltwlqmbvw"); // && (b.LL.y >= low) && (b.LL.y <= high)) {
579 UNSUPPORTED("7opo20y2y6rg5i89ocvk6qi3c"); // return 0;
580 UNSUPPORTED("4mhlpjofolwivhm0tl8cxznly"); // }
581 UNSUPPORTED("ap75hs54mf8uwlaksz3dq3q89"); // /*
582 UNSUPPORTED("95agizrp9b5p1dhdv0pxg6eh7"); // * Top edge.
583 UNSUPPORTED("3vesx4cskuo1q42jvwmoum2xs"); // */
584 UNSUPPORTED("725knfzo8czrv30p686pkacn"); // x += (b.UR.y - b.LL.y)/m;
585 UNSUPPORTED("d93289lj2vrieguknwyq7vizz"); // if ((x >= b.LL.x) && (x <= b.UR.x)
586 UNSUPPORTED("6olkmrl6prxmetzy935itn4zw"); // && (b.UR.y >= low) && (b.UR.y <= high)) {
587 UNSUPPORTED("7opo20y2y6rg5i89ocvk6qi3c"); // return 0;
588 UNSUPPORTED("4mhlpjofolwivhm0tl8cxznly"); // }
589 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
590 UNSUPPORTED("8azkpi8o0wzdufa90lw8hpt6q"); // return -1;
591 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
592
593 throw new UnsupportedOperationException();
594 }
595
596
597
598
599 //3 1r7uvomrrc3o0z8d9ompm1ig4
600 // void rect2poly(pointf *p)
601 public static Object rect2poly(Object... arg) {
602 UNSUPPORTED("4upujvzyed550abavjj8vlza1"); // void rect2poly(pointf *p)
603 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
604 UNSUPPORTED("jjuy9fch36k2y85yrqsb31r0"); // p[3].x = p[2].x = p[1].x;
605 UNSUPPORTED("9meelngzsr1xhvzldh1ry9iww"); // p[2].y = p[1].y;
606 UNSUPPORTED("adltawlh6me0hjx77x5jo35mr"); // p[3].y = p[0].y;
607 UNSUPPORTED("3ben3eqfn8zv3650vloyu3dk"); // p[1].x = p[0].x;
608 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
609
610 throw new UnsupportedOperationException();
611 }
612
613
614
615
616 //3 3aiyj7urv33rvps5ds204tciu
617 // static pointf rotatepf(pointf p, int cwrot)
618 public static ST_pointf rotatepf(final ST_pointf p, int cwrot) {
619 // WARNING!! STRUCT
620 return rotatepf_w_(p.copy(), cwrot).copy();
621 }
622 private static ST_pointf rotatepf_w_(final ST_pointf p, int cwrot) {
623 ENTERING("3aiyj7urv33rvps5ds204tciu","rotatepf");
624 try {
625 UNSUPPORTED("adzi0wztceimu4ni3aonznmq7"); // static pointf rotatepf(pointf p, int cwrot)
626 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
627 UNSUPPORTED("bvmbf4zjo22hbkaarrfpdlocf"); // static double sina, cosa;
628 UNSUPPORTED("2q61ok3mvkrnszcasq86sa47u"); // static int last_cwrot;
629 UNSUPPORTED("7lh87lvufqsd73q9difg0omei"); // pointf P;
630 UNSUPPORTED("apr20mshcgdjbln509cnpuysv"); // /* cosa is initially wrong for a cwrot of 0
631 UNSUPPORTED("7chgrmqliof6d9xytud69tz1u"); // * this caching only works because we are never called for 0 rotations */
632 UNSUPPORTED("bbm4jlwljjo7wmvr5ma5c3ybf"); // if (cwrot != last_cwrot) {
633 UNSUPPORTED("djdw08yi87cxa9gld79itcxte"); // sincos(cwrot / (2 * M_PI), &sina, &cosa);
634 UNSUPPORTED("1p92a46pieij11gut3g3w5c8a"); // last_cwrot = cwrot;
635 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
636 UNSUPPORTED("5ebfpnhj3mdplyf7cdm05fvqt"); // P.x = p.x * cosa - p.y * sina;
637 UNSUPPORTED("87v4w9w5q8h1qv8g0mktgna71"); // P.y = p.y * cosa + p.x * sina;
638 UNSUPPORTED("57gdhsck3pq8wsbtv00wvc7ca"); // return P;
639 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
640
641 throw new UnsupportedOperationException();
642 } finally {
643 LEAVING("3aiyj7urv33rvps5ds204tciu","rotatepf");
644 }
645 }
646
647
648
649
650 //3 tytryqs1gqpghjdmwwvf1klb
651 // static point rotatep(point p, int cwrot)
652 public static Object rotatep(Object... arg) {
653 UNSUPPORTED("5e2i6bk41qflr7y85q1osu5ts"); // static point rotatep(point p, int cwrot)
654 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
655 UNSUPPORTED("14au2rwic77e6h8riridc0ukd"); // pointf pf;
656 UNSUPPORTED("5ec0bowt1l7dbrl26kdbij7m1"); // P2PF(p, pf);
657 UNSUPPORTED("37ova7qixpohr8qiao9sckb10"); // pf = rotatepf(pf, cwrot);
658 UNSUPPORTED("4z58o606xwke1d8wfsxob59px"); // PF2P(pf, p);
659 UNSUPPORTED("91xduilalb406jjyw2g1i07th"); // return p;
660 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
661
662 throw new UnsupportedOperationException();
663 }
664
665
666
667
668 //3 66bs8dyk14129mi4jhjnm40yf
669 // point cwrotatep(point p, int cwrot)
670 public static Object cwrotatep(Object... arg) {
671 UNSUPPORTED("bjpc8zmw5o75ij41axaonr91n"); // point cwrotatep(point p, int cwrot)
672 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
673 UNSUPPORTED("do61zekb7jneykkag5k2ihoru"); // int x = p.x, y = p.y;
674 UNSUPPORTED("2dtbcjay37z9xis3sikr2uqvd"); // switch (cwrot) {
675 UNSUPPORTED("70xjc0sbkjvexfar5luzibcgf"); // case 0:
676 UNSUPPORTED("6aw91xzjmqvmtdvt1di23af8y"); // break;
677 UNSUPPORTED("1q74ra1plwbzbg77dmxva7rl5"); // case 90:
678 UNSUPPORTED("volj3587rzrhhe2x9l5tcqoe"); // p.x = y;
679 UNSUPPORTED("duim642efpe7clezuqpyzpw5y"); // p.y = -x;
680 UNSUPPORTED("6aw91xzjmqvmtdvt1di23af8y"); // break;
681 UNSUPPORTED("17fu4k5xy8d72f5mch8cg6aga"); // case 180:
682 UNSUPPORTED("20gmg6188e8c58dfpcwshs68q"); // p.x = x;
683 UNSUPPORTED("c7p7spy43wsvu86ax82p9jeni"); // p.y = -y;
684 UNSUPPORTED("6aw91xzjmqvmtdvt1di23af8y"); // break;
685 UNSUPPORTED("cltc0ksnwf3uugjgybaifa7r7"); // case 270:
686 UNSUPPORTED("volj3587rzrhhe2x9l5tcqoe"); // p.x = y;
687 UNSUPPORTED("enc0wozuspuqe0erlieadffeb"); // p.y = x;
688 UNSUPPORTED("6aw91xzjmqvmtdvt1di23af8y"); // break;
689 UNSUPPORTED("8l3rwj6ctswoa4gvh2j4poq70"); // default:
690 UNSUPPORTED("o9oafab685xqeq9zr7gudl0e"); // if (cwrot < 0)
691 UNSUPPORTED("aaqg3ryvg9knt1q47x4gwtt5x"); // return ccwrotatep(p, -cwrot);
692 UNSUPPORTED("1ehwxt44pkimc4wg1udnhmlw6"); // if (cwrot > 360)
693 UNSUPPORTED("aq1nthhp1dp65k4mktxyqz4bq"); // return cwrotatep(p, cwrot%360);
694 UNSUPPORTED("56r9i8o5t3hhzow2yhfx4zilm"); // return rotatep(p, cwrot);
695 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
696 UNSUPPORTED("91xduilalb406jjyw2g1i07th"); // return p;
697 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
698
699 throw new UnsupportedOperationException();
700 }
701
702
703
704
705 //3 5q8h2tm3jifiasn423wrm0y60
706 // pointf cwrotatepf(pointf p, int cwrot)
707 public static ST_pointf cwrotatepf(final ST_pointf p, int cwrot) {
708 // WARNING!! STRUCT
709 return cwrotatepf_w_(p.copy(), cwrot).copy();
710 }
711 private static ST_pointf cwrotatepf_w_(final ST_pointf p, int cwrot) {
712 ENTERING("5q8h2tm3jifiasn423wrm0y60","cwrotatepf");
713 try {
714 double x = p.x, y = p.y;
715 switch (cwrot) {
716 case 0:
717 break;
718 case 90:
719 p.setDouble("x", y);
720 p.setDouble("y", -x);
721 break;
722 case 180:
723 p.setDouble("x", x);
724 p.setDouble("y", -y);
725 break;
726 case 270:
727 p.setDouble("x", y);
728 p.setDouble("y", x);
729 break;
730 default:
731 if (cwrot < 0)
732 return ccwrotatepf(p, -cwrot);
733 if (cwrot > 360)
734 return cwrotatepf(p, cwrot%360);
735 return rotatepf(p, cwrot);
736 }
737 return p;
738 } finally {
739 LEAVING("5q8h2tm3jifiasn423wrm0y60","cwrotatepf");
740 }
741 }
742
743
744
745
746 //3 8v4jp36jzoo7itgk1f2139cvz
747 // point ccwrotatep(point p, int ccwrot)
748 public static Object ccwrotatep(Object... arg) {
749 UNSUPPORTED("4netvfi1o450fu9936ptrychj"); // point ccwrotatep(point p, int ccwrot)
750 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
751 UNSUPPORTED("do61zekb7jneykkag5k2ihoru"); // int x = p.x, y = p.y;
752 UNSUPPORTED("9hd3h63ctysf7ploj23tblup2"); // switch (ccwrot) {
753 UNSUPPORTED("70xjc0sbkjvexfar5luzibcgf"); // case 0:
754 UNSUPPORTED("6aw91xzjmqvmtdvt1di23af8y"); // break;
755 UNSUPPORTED("1q74ra1plwbzbg77dmxva7rl5"); // case 90:
756 UNSUPPORTED("avktqxvqjaqt2xlnq4ykbvlca"); // p.x = -y;
757 UNSUPPORTED("enc0wozuspuqe0erlieadffeb"); // p.y = x;
758 UNSUPPORTED("6aw91xzjmqvmtdvt1di23af8y"); // break;
759 UNSUPPORTED("17fu4k5xy8d72f5mch8cg6aga"); // case 180:
760 UNSUPPORTED("20gmg6188e8c58dfpcwshs68q"); // p.x = x;
761 UNSUPPORTED("c7p7spy43wsvu86ax82p9jeni"); // p.y = -y;
762 UNSUPPORTED("6aw91xzjmqvmtdvt1di23af8y"); // break;
763 UNSUPPORTED("cltc0ksnwf3uugjgybaifa7r7"); // case 270:
764 UNSUPPORTED("volj3587rzrhhe2x9l5tcqoe"); // p.x = y;
765 UNSUPPORTED("enc0wozuspuqe0erlieadffeb"); // p.y = x;
766 UNSUPPORTED("6aw91xzjmqvmtdvt1di23af8y"); // break;
767 UNSUPPORTED("8l3rwj6ctswoa4gvh2j4poq70"); // default:
768 UNSUPPORTED("225zfbgifuf05a2ndoo6eqxeu"); // if (ccwrot < 0)
769 UNSUPPORTED("bdxv7ie6ag4u5y8py9bg2v6s2"); // return cwrotatep(p, -ccwrot);
770 UNSUPPORTED("2po0nwnam6kgn9hmqm0ls262w"); // if (ccwrot > 360)
771 UNSUPPORTED("87ycp7fzgeye35jy3hylox5it"); // return ccwrotatep(p, ccwrot%360);
772 UNSUPPORTED("9umyw4cv019twbecwlsnwom3k"); // return rotatep(p, 360-ccwrot);
773 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
774 UNSUPPORTED("91xduilalb406jjyw2g1i07th"); // return p;
775 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
776
777 throw new UnsupportedOperationException();
778 }
779
780
781
782
783 //3 6np74e9pfmv8uek8irqru2tma
784 // pointf ccwrotatepf(pointf p, int ccwrot)
785 public static ST_pointf ccwrotatepf(final ST_pointf p, int ccwrot) {
786 // WARNING!! STRUCT
787 return ccwrotatepf_w_(p.copy(), ccwrot).copy();
788 }
789 private static ST_pointf ccwrotatepf_w_(final ST_pointf p, int ccwrot) {
790 ENTERING("6np74e9pfmv8uek8irqru2tma","ccwrotatepf");
791 try {
792 double x = p.x, y = p.y;
793 switch (ccwrot) {
794 case 0:
795 break;
796 case 90:
797 p.setDouble("x", -y);
798 p.setDouble("y", x);
799 break;
800 case 180:
801 p.setDouble("x", x);
802 p.setDouble("y", -y);
803 break;
804 case 270:
805 p.setDouble("x", y);
806 p.setDouble("y", x);
807 break;
808 default:
809 if (ccwrot < 0)
810 return cwrotatepf(p, -ccwrot);
811 if (ccwrot > 360)
812 return ccwrotatepf(p, ccwrot%360);
813 return rotatepf(p, 360-ccwrot);
814 }
815 return p;
816 } finally {
817 LEAVING("6np74e9pfmv8uek8irqru2tma","ccwrotatepf");
818 }
819 }
820
821
822
823
824 //3 5vf3yrj3pdre7b1b7c8sq4vnr
825 // inline box flip_rec_box(box b, point p)
826 public static Object flip_rec_box(Object... arg) {
827 UNSUPPORTED("azqv2nylg3fv81xe2h7obme6h"); // inline box flip_rec_box(box b, point p)
828 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
829 UNSUPPORTED("dmq8mehh6aeppnudj702vldy4"); // box r;
830 UNSUPPORTED("byo3wh0htpthg3nhm3o3s8zw"); // /* flip box */
831 UNSUPPORTED("d66qgllk8bjsehblbq26efncl"); // r.UR.x = b.UR.y;
832 UNSUPPORTED("cd003wygnwu6zjz9ybxkxzek4"); // r.UR.y = b.UR.x;
833 UNSUPPORTED("2ervqmsvgmknymzl5zimfcpf9"); // r.LL.x = b.LL.y;
834 UNSUPPORTED("671k71gzkmwyp06lvvfh3boi"); // r.LL.y = b.LL.x;
835 UNSUPPORTED("39nfxvqw1vl7uhpu80ul20w83"); // /* move box */
836 UNSUPPORTED("ck4g4elw7icvjii70m8950473"); // r.LL.x += p.x;
837 UNSUPPORTED("dy93dfzolo2ajmmszxsj5ywgb"); // r.LL.y += p.y;
838 UNSUPPORTED("e5m7ftc0fuuqjs4x8ubrmrw2r"); // r.UR.x += p.x;
839 UNSUPPORTED("7jezgbyhc86h5l890v0f8i1l9"); // r.UR.y += p.y;
840 UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); // return r;
841 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
842
843 throw new UnsupportedOperationException();
844 }
845
846
847
848
849 //3 10berg5l071upv3r6ei5ri6h6
850 // boxf flip_rec_boxf(boxf b, pointf p)
851 public static Object flip_rec_boxf(Object... arg) {
852 UNSUPPORTED("7lxs02hyh7jlorkakwwex7np1"); // boxf flip_rec_boxf(boxf b, pointf p)
853 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
854 UNSUPPORTED("c8ehlu3p9fgdawb34kesn3k9m"); // boxf r;
855 UNSUPPORTED("byo3wh0htpthg3nhm3o3s8zw"); // /* flip box */
856 UNSUPPORTED("d66qgllk8bjsehblbq26efncl"); // r.UR.x = b.UR.y;
857 UNSUPPORTED("cd003wygnwu6zjz9ybxkxzek4"); // r.UR.y = b.UR.x;
858 UNSUPPORTED("2ervqmsvgmknymzl5zimfcpf9"); // r.LL.x = b.LL.y;
859 UNSUPPORTED("671k71gzkmwyp06lvvfh3boi"); // r.LL.y = b.LL.x;
860 UNSUPPORTED("39nfxvqw1vl7uhpu80ul20w83"); // /* move box */
861 UNSUPPORTED("ck4g4elw7icvjii70m8950473"); // r.LL.x += p.x;
862 UNSUPPORTED("dy93dfzolo2ajmmszxsj5ywgb"); // r.LL.y += p.y;
863 UNSUPPORTED("e5m7ftc0fuuqjs4x8ubrmrw2r"); // r.UR.x += p.x;
864 UNSUPPORTED("7jezgbyhc86h5l890v0f8i1l9"); // r.UR.y += p.y;
865 UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); // return r;
866 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
867
868 throw new UnsupportedOperationException();
869 }
870
871
872
873
874 //3 90k9l4o3khu3dw0fzkrcd97nk
875 // double ptToLine2 (pointf a, pointf b, pointf p)
876 public static double ptToLine2(final ST_pointf a, final ST_pointf b, final ST_pointf p) {
877 // WARNING!! STRUCT
878 return ptToLine2_w_(a.copy(), b.copy(), p.copy());
879 }
880 private static double ptToLine2_w_(final ST_pointf a, final ST_pointf b, final ST_pointf p) {
881 ENTERING("90k9l4o3khu3dw0fzkrcd97nk","ptToLine2");
882 try {
883 double dx = b.x-a.x;
884 double dy = b.y-a.y;
885 double a2 = (p.y-a.y)*dx - (p.x-a.x)*dy;
886 a2 *= a2; /* square - ensures that it is positive */
887 if (a2 < 0.0000000001) return 0.; /* avoid 0/0 problems */
888 return a2 / (dx*dx + dy*dy);
889 } finally {
890 LEAVING("90k9l4o3khu3dw0fzkrcd97nk","ptToLine2");
891 }
892 }
893
894
895
896
897 //3 7a3ftw4ubky8oz0e6sd4diag1
898 // int line_intersect (pointf a, pointf b, pointf c, pointf d, pointf* p)
899 public static Object line_intersect(Object... arg) {
900 UNSUPPORTED("4owj0m9g05vi1yxcownz0rtry"); // int line_intersect (pointf a, pointf b, pointf c, pointf d, pointf* p)
901 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
902 UNSUPPORTED("5kh3p8pi4ouhb71qxt1wc19p4"); // pointf mv = sub_pointf(b,a);
903 UNSUPPORTED("4qjn6j13besul6kp2zbryihnw"); // pointf lv = sub_pointf(d,c);
904 UNSUPPORTED("cp5xvl6z479t3k1iqlafo0tu5"); // pointf ln = perp (lv);
905 UNSUPPORTED("e6xr6qn23vmjveolqf2by1ynk"); // double lc = -(ln.x*c.x+ln.y*c.y);
906 UNSUPPORTED("ez3o3rbsr12u6yt8icumd4ct"); // double dt = (ln.x*mv.x+ln.y*mv.y);
907 UNSUPPORTED("c13p9pc06v96fokdr0tm36rec"); // if (fabs(dt) < 0.0000000001) return 0;
908 UNSUPPORTED("4rkov8dzjqgoc0f65iwx9dri2"); // *p = sub_pointf(a,scale(((ln.x*a.x+ln.y*a.y)+lc)/dt,mv));
909 UNSUPPORTED("3tcgz4dupb6kw5tdk7n3pca2l"); // return 1;
910 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
911
912 throw new UnsupportedOperationException();
913 }
914
915
916 }