geometrix 0.5.10 → 0.5.12
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.
- package/dist/index.d.ts +505 -0
- package/dist/index.js +3848 -0
- package/package.json +7 -1
- package/.eslintignore +0 -17
- package/.eslintrc.cjs +0 -24
- package/.prettierignore +0 -15
- package/.prettierrc +0 -8
- package/src/aaExportContent.ts +0 -213
- package/src/aaExportFile.ts +0 -141
- package/src/aaParamGeom.ts +0 -62
- package/src/angle_utils.test.ts +0 -83
- package/src/angle_utils.ts +0 -98
- package/src/arc_to_stroke.ts +0 -73
- package/src/canvas_utils.test.ts +0 -28
- package/src/canvas_utils.ts +0 -159
- package/src/contour.test.ts +0 -37
- package/src/contour.ts +0 -806
- package/src/designParams.ts +0 -178
- package/src/figure.test.ts +0 -21
- package/src/figure.ts +0 -400
- package/src/index.ts +0 -16
- package/src/line.test.ts +0 -78
- package/src/line.ts +0 -359
- package/src/paramFile.ts +0 -52
- package/src/point.test.ts +0 -36
- package/src/point.ts +0 -246
- package/src/prepare_pax.ts +0 -102
- package/src/segment.test.ts +0 -26
- package/src/segment.ts +0 -701
- package/src/sub_design.ts +0 -16
- package/src/triangle_utils.test.ts +0 -38
- package/src/triangle_utils.ts +0 -112
- package/src/vector.test.ts +0 -28
- package/src/vector.ts +0 -122
- package/src/volume.ts +0 -50
- package/src/write_dxf.ts +0 -100
- package/src/write_openjscad.ts +0 -284
- package/src/write_openscad.ts +0 -305
- package/src/write_pax.ts +0 -73
- package/src/write_svg.ts +0 -101
- package/svg/any_triangle.svg +0 -156
- package/svg/arc_definition.svg +0 -506
- package/svg/construct_corner_rounded_ext_arc_ext_arc.svg +0 -378
- package/svg/construct_corner_rounded_int_arc_ext_arc.svg +0 -359
- package/svg/construct_corner_rounded_int_arc_int_arc.svg +0 -356
- package/svg/construct_corner_rounded_stroke_ext_arc.svg +0 -374
- package/svg/construct_corner_rounded_stroke_ext_arc_obtuse.svg +0 -370
- package/svg/construct_corner_rounded_stroke_ext_arc_obtuse_method2.svg +0 -311
- package/svg/construct_corner_rounded_stroke_int_arc.svg +0 -364
- package/svg/construct_corner_rounded_stroke_int_arc_obtuse.svg +0 -358
- package/svg/construct_corner_rounded_stroke_int_arc_obtuse_method2.svg +0 -237
- package/svg/construct_corner_rounded_stroke_stroke.svg +0 -280
- package/svg/construct_corner_wideacc.svg +0 -286
- package/svg/construct_corner_widened.svg +0 -278
- package/svg/construction_of_line_intersection_1.svg +0 -187
- package/svg/construction_of_line_intersection_2.svg +0 -189
- package/svg/contour_arc_definition_options.svg +0 -324
- package/svg/contour_point_absolute_relative.svg +0 -258
- package/svg/contour_tangential_two_arcs.svg +0 -531
- package/svg/contour_tangential_two_arcs_impossible_case.svg +0 -175
- package/svg/contour_tangential_two_arcs_requirements.svg +0 -364
- package/svg/corner_rounded_ext_arc_ext_arc.svg +0 -281
- package/svg/corner_rounded_int_arc_ext_arc.svg +0 -281
- package/svg/corner_rounded_int_arc_int_arc.svg +0 -279
- package/svg/corner_rounded_stroke_ext_arc.svg +0 -218
- package/svg/corner_rounded_stroke_int_arc.svg +0 -225
- package/svg/corner_rounded_stroke_stroke.svg +0 -174
- package/svg/geom_dev.svg +0 -14708
- package/svg/geom_modules.svg +0 -246
- package/svg/geom_user.svg +0 -58
- package/svg/line_axis_x_cases.svg +0 -1408
- package/svg/line_axis_y_cases.svg +0 -1369
- package/svg/line_distanceOrig.svg +0 -318
- package/svg/line_getAxisXIntersection.svg +0 -262
- package/svg/line_getAxisXIntersection_2.svg +0 -244
- package/svg/line_getAxisYIntersection.svg +0 -304
- package/svg/line_getAxisYIntersection_2.svg +0 -285
- package/svg/line_getAxisYIntersection_3.svg +0 -277
- package/svg/line_intersection.svg +0 -346
- package/svg/line_projectPoint.svg +0 -311
- package/svg/point_1.svg +0 -243
- package/svg/point_2.svg +0 -409
- package/svg/point_3.svg +0 -298
- package/svg/point_4.svg +0 -272
- package/svg/point_5.svg +0 -356
- package/svg/right_triangle.svg +0 -194
- package/svg/vector_definition.svg +0 -130
- package/tsconfig.json +0 -13
- package/vitest.config.ts +0 -7
package/svg/point_5.svg
DELETED
|
@@ -1,356 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
2
|
-
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
|
3
|
-
|
|
4
|
-
<svg
|
|
5
|
-
width="262.01425"
|
|
6
|
-
height="195.65175"
|
|
7
|
-
viewBox="0 0 69.324604 51.766191"
|
|
8
|
-
version="1.1"
|
|
9
|
-
id="svg5"
|
|
10
|
-
inkscape:version="1.2.2 (1:1.2.2+202212051552+b0a8486541)"
|
|
11
|
-
sodipodi:docname="geom.svg"
|
|
12
|
-
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
|
13
|
-
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
|
14
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
15
|
-
xmlns:svg="http://www.w3.org/2000/svg">
|
|
16
|
-
<sodipodi:namedview
|
|
17
|
-
id="namedview7"
|
|
18
|
-
pagecolor="#ffffff"
|
|
19
|
-
bordercolor="#666666"
|
|
20
|
-
borderopacity="1.0"
|
|
21
|
-
inkscape:showpageshadow="2"
|
|
22
|
-
inkscape:pageopacity="0.0"
|
|
23
|
-
inkscape:pagecheckerboard="0"
|
|
24
|
-
inkscape:deskcolor="#d1d1d1"
|
|
25
|
-
inkscape:document-units="px"
|
|
26
|
-
showgrid="false"
|
|
27
|
-
inkscape:zoom="1.6819304"
|
|
28
|
-
inkscape:cx="288.95369"
|
|
29
|
-
inkscape:cy="4452.3245"
|
|
30
|
-
inkscape:window-width="1366"
|
|
31
|
-
inkscape:window-height="836"
|
|
32
|
-
inkscape:window-x="0"
|
|
33
|
-
inkscape:window-y="0"
|
|
34
|
-
inkscape:window-maximized="1"
|
|
35
|
-
inkscape:current-layer="layer1"
|
|
36
|
-
showguides="false" />
|
|
37
|
-
<defs
|
|
38
|
-
id="defs2">
|
|
39
|
-
<rect
|
|
40
|
-
x="508.64487"
|
|
41
|
-
y="856.38293"
|
|
42
|
-
width="21.950199"
|
|
43
|
-
height="28.584854"
|
|
44
|
-
id="rect2992" />
|
|
45
|
-
<marker
|
|
46
|
-
style="overflow:visible"
|
|
47
|
-
id="Arrow1L-4-36"
|
|
48
|
-
refX="0"
|
|
49
|
-
refY="0"
|
|
50
|
-
orient="auto-start-reverse"
|
|
51
|
-
inkscape:stockid="Arrow1L"
|
|
52
|
-
markerWidth="8.75"
|
|
53
|
-
markerHeight="5"
|
|
54
|
-
viewBox="0 0 8.75 5"
|
|
55
|
-
inkscape:isstock="true"
|
|
56
|
-
inkscape:collect="always"
|
|
57
|
-
preserveAspectRatio="xMidYMid">
|
|
58
|
-
<path
|
|
59
|
-
style="fill:context-stroke;fill-rule:evenodd;stroke:none"
|
|
60
|
-
d="M 0,0 5,-5 -12.5,0 5,5 Z"
|
|
61
|
-
id="arrow1L-9-7"
|
|
62
|
-
transform="scale(-0.5)" />
|
|
63
|
-
</marker>
|
|
64
|
-
<marker
|
|
65
|
-
style="overflow:visible"
|
|
66
|
-
id="Arrow1L-3-5-5"
|
|
67
|
-
refX="0"
|
|
68
|
-
refY="0"
|
|
69
|
-
orient="auto-start-reverse"
|
|
70
|
-
inkscape:stockid="Arrow1L"
|
|
71
|
-
markerWidth="8.75"
|
|
72
|
-
markerHeight="5"
|
|
73
|
-
viewBox="0 0 8.75 5"
|
|
74
|
-
inkscape:isstock="true"
|
|
75
|
-
inkscape:collect="always"
|
|
76
|
-
preserveAspectRatio="xMidYMid">
|
|
77
|
-
<path
|
|
78
|
-
style="fill:context-stroke;fill-rule:evenodd;stroke:none"
|
|
79
|
-
d="M 0,0 5,-5 -12.5,0 5,5 Z"
|
|
80
|
-
id="arrow1L-6-0-3"
|
|
81
|
-
transform="scale(-0.5)" />
|
|
82
|
-
</marker>
|
|
83
|
-
<rect
|
|
84
|
-
x="254.32079"
|
|
85
|
-
y="237.99036"
|
|
86
|
-
width="38.556549"
|
|
87
|
-
height="34.914055"
|
|
88
|
-
id="rect1269-4-5" />
|
|
89
|
-
<rect
|
|
90
|
-
x="130.98518"
|
|
91
|
-
y="140.53645"
|
|
92
|
-
width="42.711418"
|
|
93
|
-
height="43.171246"
|
|
94
|
-
id="rect1287-8-6" />
|
|
95
|
-
<rect
|
|
96
|
-
x="232.47569"
|
|
97
|
-
y="161.36501"
|
|
98
|
-
width="28.095083"
|
|
99
|
-
height="22.501993"
|
|
100
|
-
id="rect1388-7-2" />
|
|
101
|
-
<rect
|
|
102
|
-
x="200.71475"
|
|
103
|
-
y="288.1904"
|
|
104
|
-
width="52.316872"
|
|
105
|
-
height="19.744669"
|
|
106
|
-
id="rect1406-17-91" />
|
|
107
|
-
<rect
|
|
108
|
-
x="200.71475"
|
|
109
|
-
y="288.1904"
|
|
110
|
-
width="52.316872"
|
|
111
|
-
height="19.744669"
|
|
112
|
-
id="rect1406-3-2-27" />
|
|
113
|
-
<rect
|
|
114
|
-
x="63.429256"
|
|
115
|
-
y="333.06458"
|
|
116
|
-
width="158.36295"
|
|
117
|
-
height="29.330603"
|
|
118
|
-
id="rect3974-2-0" />
|
|
119
|
-
<rect
|
|
120
|
-
x="232.47569"
|
|
121
|
-
y="161.36501"
|
|
122
|
-
width="28.095083"
|
|
123
|
-
height="22.501993"
|
|
124
|
-
id="rect1388-7-6-9" />
|
|
125
|
-
<rect
|
|
126
|
-
x="200.71475"
|
|
127
|
-
y="288.1904"
|
|
128
|
-
width="52.316872"
|
|
129
|
-
height="19.744669"
|
|
130
|
-
id="rect1406-17-4-3" />
|
|
131
|
-
<rect
|
|
132
|
-
x="200.71475"
|
|
133
|
-
y="288.1904"
|
|
134
|
-
width="52.316872"
|
|
135
|
-
height="19.744669"
|
|
136
|
-
id="rect1406-3-2-2-6" />
|
|
137
|
-
<rect
|
|
138
|
-
x="39.100128"
|
|
139
|
-
y="914.2851"
|
|
140
|
-
width="167.38448"
|
|
141
|
-
height="25.29678"
|
|
142
|
-
id="rect9538-0" />
|
|
143
|
-
<rect
|
|
144
|
-
x="25.58448"
|
|
145
|
-
y="907.315"
|
|
146
|
-
width="177.47375"
|
|
147
|
-
height="19.009386"
|
|
148
|
-
id="rect9544-62" />
|
|
149
|
-
<rect
|
|
150
|
-
x="232.47569"
|
|
151
|
-
y="161.36501"
|
|
152
|
-
width="28.095083"
|
|
153
|
-
height="22.501993"
|
|
154
|
-
id="rect1388-7-6-9-5" />
|
|
155
|
-
</defs>
|
|
156
|
-
<g
|
|
157
|
-
inkscape:label="Layer 1"
|
|
158
|
-
inkscape:groupmode="layer"
|
|
159
|
-
id="layer1"
|
|
160
|
-
transform="translate(-83.798988,-211.65398)">
|
|
161
|
-
<rect
|
|
162
|
-
style="fill:#ffffff;stroke:#ffffff;stroke-width:0.264583;stroke-dasharray:none;stroke-dashoffset:0"
|
|
163
|
-
id="rect3918-61-6"
|
|
164
|
-
width="69.06002"
|
|
165
|
-
height="51.501595"
|
|
166
|
-
x="83.931282"
|
|
167
|
-
y="211.78627"
|
|
168
|
-
inkscape:export-filename="point_4.svg"
|
|
169
|
-
inkscape:export-xdpi="96"
|
|
170
|
-
inkscape:export-ydpi="96" />
|
|
171
|
-
<path
|
|
172
|
-
style="fill:none;stroke:#d5f6ff;stroke-width:0.264583px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
|
|
173
|
-
d="m 117.44081,233.53833 21.57362,7.31432 -7.9902,-21.18452"
|
|
174
|
-
id="path2988" />
|
|
175
|
-
<path
|
|
176
|
-
style="fill:none;stroke:#999999;stroke-width:0.264583px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;marker-end:url(#Arrow1L-4-36)"
|
|
177
|
-
d="M 107.75706,256.2513 V 216.03498"
|
|
178
|
-
id="path196-0-1" />
|
|
179
|
-
<path
|
|
180
|
-
style="fill:none;stroke:#999999;stroke-width:0.264583px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;marker-end:url(#Arrow1L-3-5-5)"
|
|
181
|
-
d="M 86.425236,250.34039 H 144.23993"
|
|
182
|
-
id="path196-7-61-8" />
|
|
183
|
-
<text
|
|
184
|
-
xml:space="preserve"
|
|
185
|
-
transform="matrix(0.26458333,0,0,0.26458333,77.299834,187.12432)"
|
|
186
|
-
id="text1267-5-7"
|
|
187
|
-
style="font-size:14.6667px;line-height:1.25;font-family:sans-serif;white-space:pre;shape-inside:url(#rect1269-4-5);display:inline"><tspan
|
|
188
|
-
x="254.32031"
|
|
189
|
-
y="250.96683"
|
|
190
|
-
id="tspan5634">x</tspan></text>
|
|
191
|
-
<text
|
|
192
|
-
xml:space="preserve"
|
|
193
|
-
transform="matrix(0.26458333,0,0,0.26458333,70.431222,175.80941)"
|
|
194
|
-
id="text1285-9-9"
|
|
195
|
-
style="font-size:14.6667px;line-height:1.25;font-family:sans-serif;white-space:pre;shape-inside:url(#rect1287-8-6);display:inline"><tspan
|
|
196
|
-
x="130.98438"
|
|
197
|
-
y="153.5137"
|
|
198
|
-
id="tspan5636">y</tspan></text>
|
|
199
|
-
<path
|
|
200
|
-
style="fill:none;stroke:#cccccc;stroke-width:0.264583;stroke-linecap:butt;stroke-linejoin:miter;stroke-dasharray:2, 1;stroke-dashoffset:0;stroke-opacity:1"
|
|
201
|
-
d="m 117.27457,250.34038 v -16.94225 h -9.51751"
|
|
202
|
-
id="path1384-4-2" />
|
|
203
|
-
<text
|
|
204
|
-
xml:space="preserve"
|
|
205
|
-
transform="matrix(0.26458333,0,0,0.26458333,54.720948,191.24088)"
|
|
206
|
-
id="text1386-1-0"
|
|
207
|
-
style="font-size:14.6667px;line-height:1.25;font-family:sans-serif;white-space:pre;shape-inside:url(#rect1388-7-2);display:inline"><tspan
|
|
208
|
-
x="232.47656"
|
|
209
|
-
y="174.34183"
|
|
210
|
-
id="tspan5638">p1</tspan></text>
|
|
211
|
-
<text
|
|
212
|
-
xml:space="preserve"
|
|
213
|
-
transform="matrix(0.26458333,0,0,0.26458333,61.686857,175.05155)"
|
|
214
|
-
id="text1404-7-2"
|
|
215
|
-
style="font-size:8px;line-height:1.25;font-family:sans-serif;white-space:pre;shape-inside:url(#rect1406-17-91);display:inline"><tspan
|
|
216
|
-
x="200.71484"
|
|
217
|
-
y="295.26758"
|
|
218
|
-
id="tspan5640">p1.cx</tspan></text>
|
|
219
|
-
<text
|
|
220
|
-
xml:space="preserve"
|
|
221
|
-
transform="matrix(0.26458333,0,0,0.26458333,47.354045,156.12655)"
|
|
222
|
-
id="text1404-5-71-3"
|
|
223
|
-
style="font-size:8px;line-height:1.25;font-family:sans-serif;white-space:pre;shape-inside:url(#rect1406-3-2-27);display:inline"><tspan
|
|
224
|
-
x="200.71484"
|
|
225
|
-
y="295.26758"
|
|
226
|
-
id="tspan5642">p1.cy</tspan></text>
|
|
227
|
-
<path
|
|
228
|
-
style="fill:none;stroke:#000000;stroke-width:0.264583px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
|
|
229
|
-
d="m 106.9984,233.39813 h 1.51731"
|
|
230
|
-
id="path1476-1-7" />
|
|
231
|
-
<path
|
|
232
|
-
style="fill:none;stroke:#000000;stroke-width:0.264583px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
|
|
233
|
-
d="m 117.27457,251.26498 v -1.8492"
|
|
234
|
-
id="path1478-5-5" />
|
|
235
|
-
<text
|
|
236
|
-
xml:space="preserve"
|
|
237
|
-
transform="matrix(0.26458333,0,0,0.26458333,67.925062,169.91568)"
|
|
238
|
-
id="text3972-73-9"
|
|
239
|
-
style="font-size:14.6667px;line-height:1.25;font-family:sans-serif;white-space:pre;shape-inside:url(#rect3974-2-0);display:inline"><tspan
|
|
240
|
-
x="63.429688"
|
|
241
|
-
y="346.04105"
|
|
242
|
-
id="tspan5644">Point-5</tspan></text>
|
|
243
|
-
<text
|
|
244
|
-
xml:space="preserve"
|
|
245
|
-
transform="matrix(0.26458333,0,0,0.26458333,70.254517,172.73184)"
|
|
246
|
-
id="text1386-1-3-2"
|
|
247
|
-
style="font-size:14.6667px;line-height:1.25;font-family:sans-serif;white-space:pre;shape-inside:url(#rect1388-7-6-9);display:inline"><tspan
|
|
248
|
-
x="232.47656"
|
|
249
|
-
y="174.34183"
|
|
250
|
-
id="tspan5646">p2</tspan></text>
|
|
251
|
-
<path
|
|
252
|
-
style="fill:none;stroke:#cccccc;stroke-width:0.264583;stroke-linecap:butt;stroke-linejoin:miter;stroke-dasharray:2, 1;stroke-dashoffset:0;stroke-opacity:1"
|
|
253
|
-
d="M 130.83598,249.90398 V 219.60777 H 107.75706"
|
|
254
|
-
id="path1384-4-9-2" />
|
|
255
|
-
<text
|
|
256
|
-
xml:space="preserve"
|
|
257
|
-
transform="matrix(0.26458333,0,0,0.26458333,75.248272,175.14432)"
|
|
258
|
-
id="text1404-7-8-8"
|
|
259
|
-
style="font-size:8px;line-height:1.25;font-family:sans-serif;white-space:pre;shape-inside:url(#rect1406-17-4-3);display:inline"><tspan
|
|
260
|
-
x="200.71484"
|
|
261
|
-
y="295.26758"
|
|
262
|
-
id="tspan5648">p2.cx</tspan></text>
|
|
263
|
-
<path
|
|
264
|
-
style="fill:none;stroke:#000000;stroke-width:0.264583px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
|
|
265
|
-
d="m 130.83598,251.35775 v -1.8492"
|
|
266
|
-
id="path1478-5-1-9" />
|
|
267
|
-
<text
|
|
268
|
-
xml:space="preserve"
|
|
269
|
-
transform="matrix(0.26458333,0,0,0.26458333,47.354044,142.33619)"
|
|
270
|
-
id="text1404-5-71-9-7"
|
|
271
|
-
style="font-size:8px;line-height:1.25;font-family:sans-serif;white-space:pre;shape-inside:url(#rect1406-3-2-2-6);display:inline"><tspan
|
|
272
|
-
x="200.71484"
|
|
273
|
-
y="295.26758"
|
|
274
|
-
id="tspan5650">p2.cy</tspan></text>
|
|
275
|
-
<path
|
|
276
|
-
style="fill:none;stroke:#000000;stroke-width:0.264583px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
|
|
277
|
-
d="m 106.9984,219.60777 h 1.51731"
|
|
278
|
-
id="path1476-1-3-3" />
|
|
279
|
-
<path
|
|
280
|
-
style="fill:none;stroke:#008000;stroke-width:0.264583px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
|
|
281
|
-
d="m 130.83598,219.60777 -13.56141,13.79036"
|
|
282
|
-
id="path9530-1" />
|
|
283
|
-
<path
|
|
284
|
-
style="fill:none;stroke:#000000;stroke-width:0.264583px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
|
|
285
|
-
d="m 116.68665,234.14305 1.17583,-1.48983"
|
|
286
|
-
id="path1355-9-2" />
|
|
287
|
-
<path
|
|
288
|
-
style="fill:none;stroke:#000000;stroke-width:0.264583px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
|
|
289
|
-
d="m 116.52965,232.81022 1.48983,1.17583"
|
|
290
|
-
id="path1355-5-09-9" />
|
|
291
|
-
<path
|
|
292
|
-
style="fill:none;stroke:#000000;stroke-width:0.264583px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
|
|
293
|
-
d="m 130.34916,220.29646 1.17582,-1.48983"
|
|
294
|
-
id="path1355-9-5-3" />
|
|
295
|
-
<path
|
|
296
|
-
style="fill:none;stroke:#000000;stroke-width:0.264583px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
|
|
297
|
-
d="m 130.19216,218.96363 1.48982,1.17583"
|
|
298
|
-
id="path1355-5-09-6-1" />
|
|
299
|
-
<text
|
|
300
|
-
xml:space="preserve"
|
|
301
|
-
transform="matrix(0.26458333,0,0,0.26458333,86.913056,-19.823333)"
|
|
302
|
-
id="text9536-9"
|
|
303
|
-
style="font-size:10.6667px;line-height:1.25;font-family:sans-serif;white-space:pre;shape-inside:url(#rect9538-0);display:inline;fill:#ff6600"><tspan
|
|
304
|
-
x="39.099609"
|
|
305
|
-
y="923.72269"
|
|
306
|
-
id="tspan5652">p1.middlePoint(p2)</tspan></text>
|
|
307
|
-
<text
|
|
308
|
-
xml:space="preserve"
|
|
309
|
-
transform="matrix(0.26458333,0,0,0.26458333,102.48919,2.2175269)"
|
|
310
|
-
id="text9542-4"
|
|
311
|
-
style="font-size:10.6667px;line-height:1.25;font-family:sans-serif;white-space:pre;shape-inside:url(#rect9544-62);display:inline;fill:#2a7fff"><tspan
|
|
312
|
-
x="25.583984"
|
|
313
|
-
y="916.75198"
|
|
314
|
-
id="tspan5654">p1.equidistantPoint(p2, d, p3)</tspan></text>
|
|
315
|
-
<path
|
|
316
|
-
style="fill:none;stroke:#ff6600;stroke-width:0.264583px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
|
|
317
|
-
d="m 123.96037,226.73933 1.17582,-1.48983"
|
|
318
|
-
id="path1355-9-5-3-8" />
|
|
319
|
-
<path
|
|
320
|
-
style="fill:none;stroke:#ff6600;stroke-width:0.264583px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
|
|
321
|
-
d="m 123.80337,225.4065 1.48982,1.17583"
|
|
322
|
-
id="path1355-5-09-6-1-4" />
|
|
323
|
-
<text
|
|
324
|
-
xml:space="preserve"
|
|
325
|
-
transform="matrix(0.26458333,0,0,0.26458333,83.636987,182.64823)"
|
|
326
|
-
id="text1386-1-3-2-0"
|
|
327
|
-
style="font-size:14.6667px;line-height:1.25;font-family:sans-serif;white-space:pre;shape-inside:url(#rect1388-7-6-9-5);display:inline"><tspan
|
|
328
|
-
x="232.47656"
|
|
329
|
-
y="174.34183"
|
|
330
|
-
id="tspan5656">p3</tspan></text>
|
|
331
|
-
<path
|
|
332
|
-
style="fill:none;stroke:#000000;stroke-width:0.264583px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
|
|
333
|
-
d="m 143.73163,230.21285 1.17582,-1.48983"
|
|
334
|
-
id="path1355-9-5-3-3" />
|
|
335
|
-
<path
|
|
336
|
-
style="fill:none;stroke:#000000;stroke-width:0.264583px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
|
|
337
|
-
d="m 143.57463,228.88002 1.48982,1.17583"
|
|
338
|
-
id="path1355-5-09-6-1-6" />
|
|
339
|
-
<path
|
|
340
|
-
style="fill:#2a80ff;fill-opacity:0.901961;stroke:#2a80ff;stroke-width:0.264583px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:0.901961"
|
|
341
|
-
d="m 138.36765,241.55064 1.17582,-1.48983"
|
|
342
|
-
id="path1355-9-5-3-3-1" />
|
|
343
|
-
<path
|
|
344
|
-
style="fill:#2a80ff;fill-opacity:0.901961;stroke:#2a80ff;stroke-width:0.264583px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:0.901961"
|
|
345
|
-
d="m 138.21065,240.21781 1.48982,1.17583"
|
|
346
|
-
id="path1355-5-09-6-1-6-0" />
|
|
347
|
-
<text
|
|
348
|
-
xml:space="preserve"
|
|
349
|
-
transform="scale(0.26458333)"
|
|
350
|
-
id="text2990"
|
|
351
|
-
style="font-size:8px;line-height:1.25;font-family:sans-serif;white-space:pre;shape-inside:url(#rect2992);fill:#aaeeff"><tspan
|
|
352
|
-
x="508.64453"
|
|
353
|
-
y="863.46094"
|
|
354
|
-
id="tspan5658">d</tspan></text>
|
|
355
|
-
</g>
|
|
356
|
-
</svg>
|
package/svg/right_triangle.svg
DELETED
|
@@ -1,194 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
2
|
-
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
|
3
|
-
|
|
4
|
-
<svg
|
|
5
|
-
width="318.39941"
|
|
6
|
-
height="218.64432"
|
|
7
|
-
viewBox="0 0 84.243178 57.849642"
|
|
8
|
-
version="1.1"
|
|
9
|
-
id="svg5"
|
|
10
|
-
inkscape:version="1.2.2 (732a01da63, 2022-12-09, custom)"
|
|
11
|
-
sodipodi:docname="geom.svg"
|
|
12
|
-
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
|
13
|
-
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
|
14
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
15
|
-
xmlns:svg="http://www.w3.org/2000/svg">
|
|
16
|
-
<sodipodi:namedview
|
|
17
|
-
id="namedview7"
|
|
18
|
-
pagecolor="#ffffff"
|
|
19
|
-
bordercolor="#666666"
|
|
20
|
-
borderopacity="1.0"
|
|
21
|
-
inkscape:showpageshadow="2"
|
|
22
|
-
inkscape:pageopacity="0.0"
|
|
23
|
-
inkscape:pagecheckerboard="0"
|
|
24
|
-
inkscape:deskcolor="#d1d1d1"
|
|
25
|
-
inkscape:document-units="px"
|
|
26
|
-
showgrid="false"
|
|
27
|
-
inkscape:zoom="0.5946522"
|
|
28
|
-
inkscape:cx="-227.02346"
|
|
29
|
-
inkscape:cy="1497.514"
|
|
30
|
-
inkscape:window-width="1366"
|
|
31
|
-
inkscape:window-height="836"
|
|
32
|
-
inkscape:window-x="0"
|
|
33
|
-
inkscape:window-y="0"
|
|
34
|
-
inkscape:window-maximized="1"
|
|
35
|
-
inkscape:current-layer="layer1"
|
|
36
|
-
showguides="false" />
|
|
37
|
-
<defs
|
|
38
|
-
id="defs2">
|
|
39
|
-
<rect
|
|
40
|
-
x="56.152924"
|
|
41
|
-
y="1297.5906"
|
|
42
|
-
width="173.66579"
|
|
43
|
-
height="33.432102"
|
|
44
|
-
id="rect10042" />
|
|
45
|
-
<rect
|
|
46
|
-
x="69.741753"
|
|
47
|
-
y="1229.6952"
|
|
48
|
-
width="214.89212"
|
|
49
|
-
height="126.22447"
|
|
50
|
-
id="rect10027" />
|
|
51
|
-
<rect
|
|
52
|
-
x="327.76465"
|
|
53
|
-
y="1103.5288"
|
|
54
|
-
width="47.1208"
|
|
55
|
-
height="23.930836"
|
|
56
|
-
id="rect10021" />
|
|
57
|
-
<rect
|
|
58
|
-
x="246.91216"
|
|
59
|
-
y="1098.8583"
|
|
60
|
-
width="48.846401"
|
|
61
|
-
height="30.164371"
|
|
62
|
-
id="rect10015" />
|
|
63
|
-
<rect
|
|
64
|
-
x="182.11031"
|
|
65
|
-
y="1105.8234"
|
|
66
|
-
width="39.468227"
|
|
67
|
-
height="27.514421"
|
|
68
|
-
id="rect10009" />
|
|
69
|
-
<rect
|
|
70
|
-
x="54.573639"
|
|
71
|
-
y="1078.3508"
|
|
72
|
-
width="67.437859"
|
|
73
|
-
height="40.34845"
|
|
74
|
-
id="rect10003" />
|
|
75
|
-
<rect
|
|
76
|
-
x="270.31113"
|
|
77
|
-
y="1136.3942"
|
|
78
|
-
width="43.899521"
|
|
79
|
-
height="38.843479"
|
|
80
|
-
id="rect9997" />
|
|
81
|
-
<rect
|
|
82
|
-
x="110.57792"
|
|
83
|
-
y="1206.475"
|
|
84
|
-
width="77.398972"
|
|
85
|
-
height="47.288017"
|
|
86
|
-
id="rect9991" />
|
|
87
|
-
</defs>
|
|
88
|
-
<g
|
|
89
|
-
inkscape:label="Layer 1"
|
|
90
|
-
inkscape:groupmode="layer"
|
|
91
|
-
id="layer1"
|
|
92
|
-
transform="translate(-14.666461,-288.28577)">
|
|
93
|
-
<rect
|
|
94
|
-
style="fill:#ffffff;stroke:#ffffff;stroke-width:0.264583;stroke-dasharray:none;stroke-dashoffset:0"
|
|
95
|
-
id="rect10046"
|
|
96
|
-
width="83.9786"
|
|
97
|
-
height="57.585045"
|
|
98
|
-
x="14.798752"
|
|
99
|
-
y="288.41806"
|
|
100
|
-
inkscape:export-filename="right_triangle.svg"
|
|
101
|
-
inkscape:export-xdpi="96"
|
|
102
|
-
inkscape:export-ydpi="96" />
|
|
103
|
-
<rect
|
|
104
|
-
style="fill:#ffffff;stroke:#ff00ff;stroke-width:0.264595;stroke-dasharray:none;stroke-dashoffset:0"
|
|
105
|
-
id="rect9928"
|
|
106
|
-
width="3.0006669"
|
|
107
|
-
height="3.2356124"
|
|
108
|
-
x="-68.594299"
|
|
109
|
-
y="308.38208"
|
|
110
|
-
transform="matrix(0.95195548,-0.30623645,0.31892513,0.94777991,0,0)" />
|
|
111
|
-
<path
|
|
112
|
-
style="fill:none;stroke:#000000;stroke-width:0.264583px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
|
|
113
|
-
d="m 27.318155,296.23972 6.760749,20.09156 34.549315,-11.11425 -41.310064,-8.97731"
|
|
114
|
-
id="path9982" />
|
|
115
|
-
<text
|
|
116
|
-
xml:space="preserve"
|
|
117
|
-
transform="matrix(0.26458333,0,0,0.26458333,2.2287535,-2.6078936)"
|
|
118
|
-
id="text9989"
|
|
119
|
-
style="font-size:14.6667px;line-height:1.25;font-family:sans-serif;white-space:pre;shape-inside:url(#rect9991);display:inline"><tspan
|
|
120
|
-
x="110.57812"
|
|
121
|
-
y="1219.4512"
|
|
122
|
-
id="tspan24340">A</tspan></text>
|
|
123
|
-
<text
|
|
124
|
-
xml:space="preserve"
|
|
125
|
-
transform="matrix(0.26458333,0,0,0.26458333,-2.0302734,1.6271683)"
|
|
126
|
-
id="text9995"
|
|
127
|
-
style="font-size:14.6667px;line-height:1.25;font-family:sans-serif;white-space:pre;shape-inside:url(#rect9997);display:inline"><tspan
|
|
128
|
-
x="270.31055"
|
|
129
|
-
y="1149.3711"
|
|
130
|
-
id="tspan24342">B</tspan></text>
|
|
131
|
-
<text
|
|
132
|
-
xml:space="preserve"
|
|
133
|
-
transform="matrix(0.26458333,0,0,0.26458333,9.0778539,6.8263643)"
|
|
134
|
-
id="text10001"
|
|
135
|
-
style="font-size:14.6667px;line-height:1.25;font-family:sans-serif;white-space:pre;shape-inside:url(#rect10003);display:inline"><tspan
|
|
136
|
-
x="54.574219"
|
|
137
|
-
y="1091.3282"
|
|
138
|
-
id="tspan24344">C</tspan></text>
|
|
139
|
-
<text
|
|
140
|
-
xml:space="preserve"
|
|
141
|
-
transform="matrix(0.26458333,0,0,0.26458333,-2.3682427,2.8665937)"
|
|
142
|
-
id="text10007"
|
|
143
|
-
style="font-size:14.6667px;line-height:1.25;font-family:sans-serif;white-space:pre;shape-inside:url(#rect10009);display:inline"><tspan
|
|
144
|
-
x="182.10938"
|
|
145
|
-
y="1118.8008"
|
|
146
|
-
id="tspan24346">a</tspan></text>
|
|
147
|
-
<text
|
|
148
|
-
xml:space="preserve"
|
|
149
|
-
transform="matrix(0.26458333,0,0,0.26458333,-37.241138,14.285038)"
|
|
150
|
-
id="text10013"
|
|
151
|
-
style="font-size:14.6667px;line-height:1.25;font-family:sans-serif;white-space:pre;shape-inside:url(#rect10015);display:inline"><tspan
|
|
152
|
-
x="246.91211"
|
|
153
|
-
y="1111.834"
|
|
154
|
-
id="tspan24348">b</tspan></text>
|
|
155
|
-
<text
|
|
156
|
-
xml:space="preserve"
|
|
157
|
-
transform="matrix(0.26458333,0,0,0.26458333,-35.789714,19.078057)"
|
|
158
|
-
id="text10019"
|
|
159
|
-
style="font-size:14.6667px;line-height:1.25;font-family:sans-serif;white-space:pre;shape-inside:url(#rect10021);display:inline"><tspan
|
|
160
|
-
x="327.76562"
|
|
161
|
-
y="1116.5059"
|
|
162
|
-
id="tspan24350">c</tspan></text>
|
|
163
|
-
<text
|
|
164
|
-
xml:space="preserve"
|
|
165
|
-
transform="matrix(0.26458333,0,0,0.26458333,27.721467,-3.7471572)"
|
|
166
|
-
id="text10025"
|
|
167
|
-
style="font-size:14.6667px;line-height:1.25;font-family:sans-serif;baseline-shift:baseline;white-space:pre;shape-inside:url(#rect10027);display:inline"><tspan
|
|
168
|
-
x="69.742188"
|
|
169
|
-
y="1242.6719"
|
|
170
|
-
id="tspan24358">a<tspan
|
|
171
|
-
style="baseline-shift:super"
|
|
172
|
-
id="tspan24352">2 </tspan>= b<tspan
|
|
173
|
-
style="baseline-shift:super"
|
|
174
|
-
id="tspan24354">2</tspan>+c<tspan
|
|
175
|
-
style="baseline-shift:super"
|
|
176
|
-
id="tspan24356">2</tspan> [Pythagore]
|
|
177
|
-
</tspan><tspan
|
|
178
|
-
x="69.742188"
|
|
179
|
-
y="1261.0053"
|
|
180
|
-
id="tspan24360">c = a * cos(B)
|
|
181
|
-
</tspan><tspan
|
|
182
|
-
x="69.742188"
|
|
183
|
-
y="1279.3387"
|
|
184
|
-
id="tspan24362">b = a * sin(B)</tspan></text>
|
|
185
|
-
<text
|
|
186
|
-
xml:space="preserve"
|
|
187
|
-
transform="matrix(0.26458333,0,0,0.26458333,2.1187599,-3.5929203)"
|
|
188
|
-
id="text10040"
|
|
189
|
-
style="font-size:14.6667px;line-height:1.25;font-family:sans-serif;white-space:pre;shape-inside:url(#rect10042);display:inline"><tspan
|
|
190
|
-
x="56.152344"
|
|
191
|
-
y="1310.5664"
|
|
192
|
-
id="tspan24364">right triangle</tspan></text>
|
|
193
|
-
</g>
|
|
194
|
-
</svg>
|
|
@@ -1,130 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
2
|
-
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
|
3
|
-
|
|
4
|
-
<svg
|
|
5
|
-
width="114.76628"
|
|
6
|
-
height="115.83339"
|
|
7
|
-
viewBox="0 0 30.365245 30.647584"
|
|
8
|
-
version="1.1"
|
|
9
|
-
id="svg5"
|
|
10
|
-
inkscape:version="1.2.2 (1:1.2.2+202212051552+b0a8486541)"
|
|
11
|
-
sodipodi:docname="geom.svg"
|
|
12
|
-
inkscape:export-filename="arc_definition.svg"
|
|
13
|
-
inkscape:export-xdpi="96"
|
|
14
|
-
inkscape:export-ydpi="96"
|
|
15
|
-
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
|
16
|
-
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
|
17
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
18
|
-
xmlns:svg="http://www.w3.org/2000/svg">
|
|
19
|
-
<sodipodi:namedview
|
|
20
|
-
id="namedview7"
|
|
21
|
-
pagecolor="#ffffff"
|
|
22
|
-
bordercolor="#666666"
|
|
23
|
-
borderopacity="1.0"
|
|
24
|
-
inkscape:showpageshadow="2"
|
|
25
|
-
inkscape:pageopacity="0.0"
|
|
26
|
-
inkscape:pagecheckerboard="0"
|
|
27
|
-
inkscape:deskcolor="#d1d1d1"
|
|
28
|
-
inkscape:document-units="px"
|
|
29
|
-
showgrid="false"
|
|
30
|
-
inkscape:zoom="1.1893044"
|
|
31
|
-
inkscape:cx="278.31395"
|
|
32
|
-
inkscape:cy="6244.4064"
|
|
33
|
-
inkscape:window-width="1366"
|
|
34
|
-
inkscape:window-height="836"
|
|
35
|
-
inkscape:window-x="0"
|
|
36
|
-
inkscape:window-y="0"
|
|
37
|
-
inkscape:window-maximized="1"
|
|
38
|
-
inkscape:current-layer="layer1"
|
|
39
|
-
showguides="false" />
|
|
40
|
-
<defs
|
|
41
|
-
id="defs2">
|
|
42
|
-
<rect
|
|
43
|
-
x="141.90115"
|
|
44
|
-
y="6481.791"
|
|
45
|
-
width="149.16315"
|
|
46
|
-
height="30.023458"
|
|
47
|
-
id="rect3561" />
|
|
48
|
-
<rect
|
|
49
|
-
x="227.90533"
|
|
50
|
-
y="6507.8809"
|
|
51
|
-
width="28.666967"
|
|
52
|
-
height="23.428217"
|
|
53
|
-
id="rect3555" />
|
|
54
|
-
<rect
|
|
55
|
-
x="189.42928"
|
|
56
|
-
y="6502.708"
|
|
57
|
-
width="34.511703"
|
|
58
|
-
height="21.104445"
|
|
59
|
-
id="rect3531" />
|
|
60
|
-
<marker
|
|
61
|
-
style="overflow:visible"
|
|
62
|
-
id="Arrow1L"
|
|
63
|
-
refX="0"
|
|
64
|
-
refY="0"
|
|
65
|
-
orient="auto-start-reverse"
|
|
66
|
-
inkscape:stockid="Arrow1L"
|
|
67
|
-
markerWidth="8.75"
|
|
68
|
-
markerHeight="5"
|
|
69
|
-
viewBox="0 0 8.75 5"
|
|
70
|
-
inkscape:isstock="true"
|
|
71
|
-
inkscape:collect="always"
|
|
72
|
-
preserveAspectRatio="xMidYMid">
|
|
73
|
-
<path
|
|
74
|
-
style="fill:context-stroke;fill-rule:evenodd;stroke:none"
|
|
75
|
-
d="M 0,0 5,-5 -12.5,0 5,5 Z"
|
|
76
|
-
id="arrow1L"
|
|
77
|
-
transform="scale(-0.5)" />
|
|
78
|
-
</marker>
|
|
79
|
-
</defs>
|
|
80
|
-
<g
|
|
81
|
-
inkscape:label="Layer 1"
|
|
82
|
-
inkscape:groupmode="layer"
|
|
83
|
-
id="layer1"
|
|
84
|
-
transform="translate(-36.308735,-1689.8141)">
|
|
85
|
-
<rect
|
|
86
|
-
style="fill:#ffffff;stroke:#ffffff;stroke-width:0.264583"
|
|
87
|
-
id="rect3667"
|
|
88
|
-
width="30.100666"
|
|
89
|
-
height="30.383057"
|
|
90
|
-
x="36.441025"
|
|
91
|
-
y="1689.9464" />
|
|
92
|
-
<path
|
|
93
|
-
style="fill:none;stroke:#000000;stroke-width:0.264583px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;marker-end:url(#Arrow1L)"
|
|
94
|
-
d="M 38.04567,1712.4271 63.062132,1692.424"
|
|
95
|
-
id="path1765" />
|
|
96
|
-
<path
|
|
97
|
-
style="fill:none;stroke:#cccccc;stroke-width:0.264583px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
|
|
98
|
-
d="m 38.062184,1712.4485 h 7.697774"
|
|
99
|
-
id="path3372" />
|
|
100
|
-
<path
|
|
101
|
-
style="fill:none;stroke:#aa0000;stroke-width:0.264583px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
|
|
102
|
-
d="m 40.377685,1710.4471 c 0,0 1.069445,0.4841 1.171003,0.9837 0.08266,0.4066 -0.564864,1.1093 -0.564864,1.1093"
|
|
103
|
-
id="path3428"
|
|
104
|
-
sodipodi:nodetypes="cac" />
|
|
105
|
-
<text
|
|
106
|
-
xml:space="preserve"
|
|
107
|
-
transform="matrix(0.26458333,0,0,0.26458333,-7.9059043,-11.75566)"
|
|
108
|
-
id="text3529"
|
|
109
|
-
style="font-size:14.6667px;line-height:1.25;font-family:sans-serif;white-space:pre;shape-inside:url(#rect3531);fill:#aa0000"><tspan
|
|
110
|
-
x="189.42969"
|
|
111
|
-
y="6515.6836"
|
|
112
|
-
id="tspan7086">a</tspan></text>
|
|
113
|
-
<text
|
|
114
|
-
xml:space="preserve"
|
|
115
|
-
transform="matrix(0.26458333,0,0,0.26458333,-11.409356,-23.661661)"
|
|
116
|
-
id="text3553"
|
|
117
|
-
style="font-size:14.6667px;line-height:1.25;font-family:sans-serif;white-space:pre;shape-inside:url(#rect3555);fill:#0000ff"><tspan
|
|
118
|
-
x="227.90625"
|
|
119
|
-
y="6520.8575"
|
|
120
|
-
id="tspan7088">l</tspan></text>
|
|
121
|
-
<text
|
|
122
|
-
xml:space="preserve"
|
|
123
|
-
transform="matrix(0.26458333,0,0,0.26458333,5.0329261,-0.0091247)"
|
|
124
|
-
id="text3559"
|
|
125
|
-
style="font-size:14.6667px;line-height:1.25;font-family:sans-serif;white-space:pre;shape-inside:url(#rect3561)"><tspan
|
|
126
|
-
x="141.90039"
|
|
127
|
-
y="6494.7676"
|
|
128
|
-
id="tspan7090">vector(a, l)</tspan></text>
|
|
129
|
-
</g>
|
|
130
|
-
</svg>
|