@procedures/predicates 0.0.0-stage → 0.62.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,896 @@
1
+ // The manifest of @mark1russell7/predicates 0.1.5, made from its types by `node scripts/wraps.ts generate`. Do not edit it.
2
+ import type { ExportsManifest } from "@procedures/compiler";
3
+
4
+ export const manifest: ExportsManifest = {
5
+ "format": "procedures-exports/1",
6
+ "package": "@mark1russell7/predicates",
7
+ "version": "0.1.5",
8
+ "entry": ".",
9
+ "namespace": [
10
+ "predicates"
11
+ ],
12
+ "$defs": {
13
+ "PointLocation": {
14
+ "enum": [
15
+ "inside",
16
+ "boundary",
17
+ "outside"
18
+ ]
19
+ },
20
+ "RayEdge": {
21
+ "enum": [
22
+ "boundary",
23
+ "crosses",
24
+ "misses"
25
+ ]
26
+ },
27
+ "SegmentIntersection": {
28
+ "type": "object",
29
+ "properties": {
30
+ "relation": {
31
+ "$ref": "#/$defs/SegmentRelation"
32
+ },
33
+ "collinear": {
34
+ "type": "boolean",
35
+ "description": "The value is `true` when the four points are on one line. Then the comparisons of the floats give the relation. A segment of length 0 is on each line through its point."
36
+ },
37
+ "stage": {
38
+ "$ref": "#/$defs/Stage",
39
+ "description": "The value is `exact` when the exact stage decided one of the orientation signs that the answer used."
40
+ }
41
+ },
42
+ "required": [
43
+ "relation",
44
+ "collinear",
45
+ "stage"
46
+ ]
47
+ },
48
+ "SegmentRelation": {
49
+ "enum": [
50
+ "disjoint",
51
+ "cross",
52
+ "touch",
53
+ "overlap"
54
+ ]
55
+ },
56
+ "Sign": {
57
+ "enum": [
58
+ 0,
59
+ 1,
60
+ -1
61
+ ]
62
+ },
63
+ "SignResult": {
64
+ "type": "object",
65
+ "properties": {
66
+ "sign": {
67
+ "$ref": "#/$defs/Sign"
68
+ },
69
+ "stage": {
70
+ "$ref": "#/$defs/Stage"
71
+ }
72
+ },
73
+ "required": [
74
+ "sign",
75
+ "stage"
76
+ ]
77
+ },
78
+ "Stage": {
79
+ "enum": [
80
+ "filter",
81
+ "exact"
82
+ ]
83
+ }
84
+ },
85
+ "procedures": [
86
+ {
87
+ "name": "classifySegments",
88
+ "path": [
89
+ "predicates",
90
+ "classifySegments"
91
+ ],
92
+ "description": "This function gives the exact relation of the closed segments `ab` and `cd`. The inputs must be finite.",
93
+ "params": [
94
+ "ax",
95
+ "ay",
96
+ "bx",
97
+ "by",
98
+ "cx",
99
+ "cy",
100
+ "dx",
101
+ "dy"
102
+ ],
103
+ "input": {
104
+ "type": "object",
105
+ "properties": {
106
+ "ax": {
107
+ "type": "number"
108
+ },
109
+ "ay": {
110
+ "type": "number"
111
+ },
112
+ "bx": {
113
+ "type": "number"
114
+ },
115
+ "by": {
116
+ "type": "number"
117
+ },
118
+ "cx": {
119
+ "type": "number"
120
+ },
121
+ "cy": {
122
+ "type": "number"
123
+ },
124
+ "dx": {
125
+ "type": "number"
126
+ },
127
+ "dy": {
128
+ "type": "number"
129
+ }
130
+ },
131
+ "required": [
132
+ "ax",
133
+ "ay",
134
+ "bx",
135
+ "by",
136
+ "cx",
137
+ "cy",
138
+ "dx",
139
+ "dy"
140
+ ],
141
+ "additionalProperties": false
142
+ },
143
+ "output": {
144
+ "$ref": "#/$defs/SegmentIntersection"
145
+ },
146
+ "effects": {
147
+ "reads": [],
148
+ "writes": []
149
+ }
150
+ },
151
+ {
152
+ "name": "classifySegmentsShifted",
153
+ "path": [
154
+ "predicates",
155
+ "classifySegmentsShifted"
156
+ ],
157
+ "description": "This function gives the exact relation of the closed segment `ab` and the closed segment `cd` after its move by `t`. The rule is the rule of `classifySegments` on the exact moved points. The inputs must be finite.",
158
+ "params": [
159
+ "ax",
160
+ "ay",
161
+ "bx",
162
+ "by",
163
+ "cx",
164
+ "cy",
165
+ "dx",
166
+ "dy",
167
+ "tx",
168
+ "ty"
169
+ ],
170
+ "input": {
171
+ "type": "object",
172
+ "properties": {
173
+ "ax": {
174
+ "type": "number"
175
+ },
176
+ "ay": {
177
+ "type": "number"
178
+ },
179
+ "bx": {
180
+ "type": "number"
181
+ },
182
+ "by": {
183
+ "type": "number"
184
+ },
185
+ "cx": {
186
+ "type": "number"
187
+ },
188
+ "cy": {
189
+ "type": "number"
190
+ },
191
+ "dx": {
192
+ "type": "number"
193
+ },
194
+ "dy": {
195
+ "type": "number"
196
+ },
197
+ "tx": {
198
+ "type": "number"
199
+ },
200
+ "ty": {
201
+ "type": "number"
202
+ }
203
+ },
204
+ "required": [
205
+ "ax",
206
+ "ay",
207
+ "bx",
208
+ "by",
209
+ "cx",
210
+ "cy",
211
+ "dx",
212
+ "dy",
213
+ "tx",
214
+ "ty"
215
+ ],
216
+ "additionalProperties": false
217
+ },
218
+ "output": {
219
+ "$ref": "#/$defs/SegmentIntersection"
220
+ },
221
+ "effects": {
222
+ "reads": [],
223
+ "writes": []
224
+ }
225
+ },
226
+ {
227
+ "name": "compareShifted",
228
+ "path": [
229
+ "predicates",
230
+ "compareShifted"
231
+ ],
232
+ "description": "This function gives the exact sign of `x + t - y`. The inputs must be finite.",
233
+ "params": [
234
+ "x",
235
+ "t",
236
+ "y"
237
+ ],
238
+ "input": {
239
+ "type": "object",
240
+ "properties": {
241
+ "x": {
242
+ "type": "number"
243
+ },
244
+ "t": {
245
+ "type": "number"
246
+ },
247
+ "y": {
248
+ "type": "number"
249
+ }
250
+ },
251
+ "required": [
252
+ "x",
253
+ "t",
254
+ "y"
255
+ ],
256
+ "additionalProperties": false
257
+ },
258
+ "output": {
259
+ "$ref": "#/$defs/Sign"
260
+ },
261
+ "effects": {
262
+ "reads": [],
263
+ "writes": []
264
+ }
265
+ },
266
+ {
267
+ "name": "incircle",
268
+ "path": [
269
+ "predicates",
270
+ "incircle"
271
+ ],
272
+ "description": "This function gives the exact in-circle sign of the point `d` against the circle through `a`, `b` and `c`, and the stage that decided it. The inputs must be finite.",
273
+ "params": [
274
+ "ax",
275
+ "ay",
276
+ "bx",
277
+ "by",
278
+ "cx",
279
+ "cy",
280
+ "dx",
281
+ "dy"
282
+ ],
283
+ "input": {
284
+ "type": "object",
285
+ "properties": {
286
+ "ax": {
287
+ "type": "number"
288
+ },
289
+ "ay": {
290
+ "type": "number"
291
+ },
292
+ "bx": {
293
+ "type": "number"
294
+ },
295
+ "by": {
296
+ "type": "number"
297
+ },
298
+ "cx": {
299
+ "type": "number"
300
+ },
301
+ "cy": {
302
+ "type": "number"
303
+ },
304
+ "dx": {
305
+ "type": "number"
306
+ },
307
+ "dy": {
308
+ "type": "number"
309
+ }
310
+ },
311
+ "required": [
312
+ "ax",
313
+ "ay",
314
+ "bx",
315
+ "by",
316
+ "cx",
317
+ "cy",
318
+ "dx",
319
+ "dy"
320
+ ],
321
+ "additionalProperties": false
322
+ },
323
+ "output": {
324
+ "$ref": "#/$defs/SignResult"
325
+ },
326
+ "effects": {
327
+ "reads": [],
328
+ "writes": []
329
+ }
330
+ },
331
+ {
332
+ "name": "incircleExact",
333
+ "path": [
334
+ "predicates",
335
+ "incircleExact"
336
+ ],
337
+ "description": "This function gives the exact in-circle sign over dyadic numbers, with no filter.",
338
+ "params": [
339
+ "ax",
340
+ "ay",
341
+ "bx",
342
+ "by",
343
+ "cx",
344
+ "cy",
345
+ "dx",
346
+ "dy"
347
+ ],
348
+ "input": {
349
+ "type": "object",
350
+ "properties": {
351
+ "ax": {
352
+ "type": "number"
353
+ },
354
+ "ay": {
355
+ "type": "number"
356
+ },
357
+ "bx": {
358
+ "type": "number"
359
+ },
360
+ "by": {
361
+ "type": "number"
362
+ },
363
+ "cx": {
364
+ "type": "number"
365
+ },
366
+ "cy": {
367
+ "type": "number"
368
+ },
369
+ "dx": {
370
+ "type": "number"
371
+ },
372
+ "dy": {
373
+ "type": "number"
374
+ }
375
+ },
376
+ "required": [
377
+ "ax",
378
+ "ay",
379
+ "bx",
380
+ "by",
381
+ "cx",
382
+ "cy",
383
+ "dx",
384
+ "dy"
385
+ ],
386
+ "additionalProperties": false
387
+ },
388
+ "output": {
389
+ "$ref": "#/$defs/Sign"
390
+ },
391
+ "effects": {
392
+ "reads": [],
393
+ "writes": []
394
+ }
395
+ },
396
+ {
397
+ "name": "incircleSign",
398
+ "path": [
399
+ "predicates",
400
+ "incircleSign"
401
+ ],
402
+ "description": "This function gives the exact in-circle sign of `incircle` without the stage. It is the form for a hot loop.",
403
+ "params": [
404
+ "ax",
405
+ "ay",
406
+ "bx",
407
+ "by",
408
+ "cx",
409
+ "cy",
410
+ "dx",
411
+ "dy"
412
+ ],
413
+ "input": {
414
+ "type": "object",
415
+ "properties": {
416
+ "ax": {
417
+ "type": "number"
418
+ },
419
+ "ay": {
420
+ "type": "number"
421
+ },
422
+ "bx": {
423
+ "type": "number"
424
+ },
425
+ "by": {
426
+ "type": "number"
427
+ },
428
+ "cx": {
429
+ "type": "number"
430
+ },
431
+ "cy": {
432
+ "type": "number"
433
+ },
434
+ "dx": {
435
+ "type": "number"
436
+ },
437
+ "dy": {
438
+ "type": "number"
439
+ }
440
+ },
441
+ "required": [
442
+ "ax",
443
+ "ay",
444
+ "bx",
445
+ "by",
446
+ "cx",
447
+ "cy",
448
+ "dx",
449
+ "dy"
450
+ ],
451
+ "additionalProperties": false
452
+ },
453
+ "output": {
454
+ "$ref": "#/$defs/Sign"
455
+ },
456
+ "effects": {
457
+ "reads": [],
458
+ "writes": []
459
+ }
460
+ },
461
+ {
462
+ "name": "locateInRings",
463
+ "path": [
464
+ "predicates",
465
+ "locateInRings"
466
+ ],
467
+ "description": "This function gives the exact location of the point `(x, y)` against the rings moved by `t = (tx, ty)`. The result has no error: it is the location against the exact moved rings, also when a float sum of a position and `t` rounds.",
468
+ "params": [
469
+ "rings",
470
+ "x",
471
+ "y",
472
+ "tx",
473
+ "ty"
474
+ ],
475
+ "input": {
476
+ "type": "object",
477
+ "properties": {
478
+ "rings": {
479
+ "type": "array",
480
+ "items": {
481
+ "type": "array",
482
+ "items": {
483
+ "type": "array",
484
+ "items": {
485
+ "type": "number"
486
+ }
487
+ }
488
+ },
489
+ "description": "The rings. Each position has `x` and `y` first."
490
+ },
491
+ "x": {
492
+ "type": "number",
493
+ "description": "The x of the point."
494
+ },
495
+ "y": {
496
+ "type": "number",
497
+ "description": "The y of the point."
498
+ },
499
+ "tx": {
500
+ "type": "number",
501
+ "description": "The move of the rings on the x axis. The default is 0."
502
+ },
503
+ "ty": {
504
+ "type": "number",
505
+ "description": "The move of the rings on the y axis. The default is 0."
506
+ }
507
+ },
508
+ "required": [
509
+ "rings",
510
+ "x",
511
+ "y"
512
+ ],
513
+ "additionalProperties": false
514
+ },
515
+ "output": {
516
+ "$ref": "#/$defs/PointLocation"
517
+ },
518
+ "effects": {
519
+ "reads": [],
520
+ "writes": []
521
+ }
522
+ },
523
+ {
524
+ "name": "orient2d",
525
+ "path": [
526
+ "predicates",
527
+ "orient2d"
528
+ ],
529
+ "description": "This function gives the exact orientation sign of the points `a`, `b` and `c`, and the stage that decided it. The inputs must be finite.",
530
+ "params": [
531
+ "ax",
532
+ "ay",
533
+ "bx",
534
+ "by",
535
+ "cx",
536
+ "cy"
537
+ ],
538
+ "input": {
539
+ "type": "object",
540
+ "properties": {
541
+ "ax": {
542
+ "type": "number"
543
+ },
544
+ "ay": {
545
+ "type": "number"
546
+ },
547
+ "bx": {
548
+ "type": "number"
549
+ },
550
+ "by": {
551
+ "type": "number"
552
+ },
553
+ "cx": {
554
+ "type": "number"
555
+ },
556
+ "cy": {
557
+ "type": "number"
558
+ }
559
+ },
560
+ "required": [
561
+ "ax",
562
+ "ay",
563
+ "bx",
564
+ "by",
565
+ "cx",
566
+ "cy"
567
+ ],
568
+ "additionalProperties": false
569
+ },
570
+ "output": {
571
+ "$ref": "#/$defs/SignResult"
572
+ },
573
+ "effects": {
574
+ "reads": [],
575
+ "writes": []
576
+ }
577
+ },
578
+ {
579
+ "name": "orient2dExact",
580
+ "path": [
581
+ "predicates",
582
+ "orient2dExact"
583
+ ],
584
+ "description": "This function gives the exact orientation sign over dyadic numbers, with no filter. Each finite float is a dyadic number, so the differences and the products are exact.",
585
+ "params": [
586
+ "ax",
587
+ "ay",
588
+ "bx",
589
+ "by",
590
+ "cx",
591
+ "cy"
592
+ ],
593
+ "input": {
594
+ "type": "object",
595
+ "properties": {
596
+ "ax": {
597
+ "type": "number"
598
+ },
599
+ "ay": {
600
+ "type": "number"
601
+ },
602
+ "bx": {
603
+ "type": "number"
604
+ },
605
+ "by": {
606
+ "type": "number"
607
+ },
608
+ "cx": {
609
+ "type": "number"
610
+ },
611
+ "cy": {
612
+ "type": "number"
613
+ }
614
+ },
615
+ "required": [
616
+ "ax",
617
+ "ay",
618
+ "bx",
619
+ "by",
620
+ "cx",
621
+ "cy"
622
+ ],
623
+ "additionalProperties": false
624
+ },
625
+ "output": {
626
+ "$ref": "#/$defs/Sign"
627
+ },
628
+ "effects": {
629
+ "reads": [],
630
+ "writes": []
631
+ }
632
+ },
633
+ {
634
+ "name": "orient2dShifted",
635
+ "path": [
636
+ "predicates",
637
+ "orient2dShifted"
638
+ ],
639
+ "description": "This function gives the exact orientation sign of the points `a`, `b` and `c + t`, and the stage that decided it. The inputs must be finite. The sign does not change when `a` and `b` move by `-t` in place of `c` by `t`.",
640
+ "params": [
641
+ "ax",
642
+ "ay",
643
+ "bx",
644
+ "by",
645
+ "cx",
646
+ "cy",
647
+ "tx",
648
+ "ty"
649
+ ],
650
+ "input": {
651
+ "type": "object",
652
+ "properties": {
653
+ "ax": {
654
+ "type": "number"
655
+ },
656
+ "ay": {
657
+ "type": "number"
658
+ },
659
+ "bx": {
660
+ "type": "number"
661
+ },
662
+ "by": {
663
+ "type": "number"
664
+ },
665
+ "cx": {
666
+ "type": "number"
667
+ },
668
+ "cy": {
669
+ "type": "number"
670
+ },
671
+ "tx": {
672
+ "type": "number"
673
+ },
674
+ "ty": {
675
+ "type": "number"
676
+ }
677
+ },
678
+ "required": [
679
+ "ax",
680
+ "ay",
681
+ "bx",
682
+ "by",
683
+ "cx",
684
+ "cy",
685
+ "tx",
686
+ "ty"
687
+ ],
688
+ "additionalProperties": false
689
+ },
690
+ "output": {
691
+ "$ref": "#/$defs/SignResult"
692
+ },
693
+ "effects": {
694
+ "reads": [],
695
+ "writes": []
696
+ }
697
+ },
698
+ {
699
+ "name": "orient2dShiftedSign",
700
+ "path": [
701
+ "predicates",
702
+ "orient2dShiftedSign"
703
+ ],
704
+ "description": "This function gives the exact sign of `orient2dShifted` without the stage. It is the form for a hot loop.",
705
+ "params": [
706
+ "ax",
707
+ "ay",
708
+ "bx",
709
+ "by",
710
+ "cx",
711
+ "cy",
712
+ "tx",
713
+ "ty"
714
+ ],
715
+ "input": {
716
+ "type": "object",
717
+ "properties": {
718
+ "ax": {
719
+ "type": "number"
720
+ },
721
+ "ay": {
722
+ "type": "number"
723
+ },
724
+ "bx": {
725
+ "type": "number"
726
+ },
727
+ "by": {
728
+ "type": "number"
729
+ },
730
+ "cx": {
731
+ "type": "number"
732
+ },
733
+ "cy": {
734
+ "type": "number"
735
+ },
736
+ "tx": {
737
+ "type": "number"
738
+ },
739
+ "ty": {
740
+ "type": "number"
741
+ }
742
+ },
743
+ "required": [
744
+ "ax",
745
+ "ay",
746
+ "bx",
747
+ "by",
748
+ "cx",
749
+ "cy",
750
+ "tx",
751
+ "ty"
752
+ ],
753
+ "additionalProperties": false
754
+ },
755
+ "output": {
756
+ "$ref": "#/$defs/Sign"
757
+ },
758
+ "effects": {
759
+ "reads": [],
760
+ "writes": []
761
+ }
762
+ },
763
+ {
764
+ "name": "orient2dSign",
765
+ "path": [
766
+ "predicates",
767
+ "orient2dSign"
768
+ ],
769
+ "description": "This function gives the exact orientation sign of `orient2d` without the stage. It is the form for a hot loop.",
770
+ "params": [
771
+ "ax",
772
+ "ay",
773
+ "bx",
774
+ "by",
775
+ "cx",
776
+ "cy"
777
+ ],
778
+ "input": {
779
+ "type": "object",
780
+ "properties": {
781
+ "ax": {
782
+ "type": "number"
783
+ },
784
+ "ay": {
785
+ "type": "number"
786
+ },
787
+ "bx": {
788
+ "type": "number"
789
+ },
790
+ "by": {
791
+ "type": "number"
792
+ },
793
+ "cx": {
794
+ "type": "number"
795
+ },
796
+ "cy": {
797
+ "type": "number"
798
+ }
799
+ },
800
+ "required": [
801
+ "ax",
802
+ "ay",
803
+ "bx",
804
+ "by",
805
+ "cx",
806
+ "cy"
807
+ ],
808
+ "additionalProperties": false
809
+ },
810
+ "output": {
811
+ "$ref": "#/$defs/Sign"
812
+ },
813
+ "effects": {
814
+ "reads": [],
815
+ "writes": []
816
+ }
817
+ },
818
+ {
819
+ "name": "rayEdge",
820
+ "path": [
821
+ "predicates",
822
+ "rayEdge"
823
+ ],
824
+ "description": "This function gives the exact test of the edge from `a` to `b`, moved by `t = (tx, ty)`, and the ray from `(x, y)` to the east. The result has no error, also when a float sum of a position and `t` rounds.",
825
+ "params": [
826
+ "ax",
827
+ "ay",
828
+ "bx",
829
+ "by",
830
+ "x",
831
+ "y",
832
+ "tx",
833
+ "ty"
834
+ ],
835
+ "input": {
836
+ "type": "object",
837
+ "properties": {
838
+ "ax": {
839
+ "type": "number",
840
+ "description": "The x of the end `a`."
841
+ },
842
+ "ay": {
843
+ "type": "number",
844
+ "description": "The y of the end `a`."
845
+ },
846
+ "bx": {
847
+ "type": "number",
848
+ "description": "The x of the end `b`."
849
+ },
850
+ "by": {
851
+ "type": "number",
852
+ "description": "The y of the end `b`."
853
+ },
854
+ "x": {
855
+ "type": "number",
856
+ "description": "The x of the point."
857
+ },
858
+ "y": {
859
+ "type": "number",
860
+ "description": "The y of the point."
861
+ },
862
+ "tx": {
863
+ "type": "number",
864
+ "description": "The move of the edge on the x axis. The default is 0."
865
+ },
866
+ "ty": {
867
+ "type": "number",
868
+ "description": "The move of the edge on the y axis. The default is 0."
869
+ }
870
+ },
871
+ "required": [
872
+ "ax",
873
+ "ay",
874
+ "bx",
875
+ "by",
876
+ "x",
877
+ "y"
878
+ ],
879
+ "additionalProperties": false
880
+ },
881
+ "output": {
882
+ "$ref": "#/$defs/RayEdge"
883
+ },
884
+ "effects": {
885
+ "reads": [],
886
+ "writes": []
887
+ }
888
+ }
889
+ ],
890
+ "exempt": [],
891
+ "others": {
892
+ "classes": [],
893
+ "values": 6,
894
+ "types": 9
895
+ }
896
+ };