Debian Codegraph @

texmf-dist/tex/latex/tkz-euclide/tkz-tools-eu-intersections.tex

raw
1 % tkz-tools-intersections.tex
2 % Copyright 2011-2026 Alain Matthes
3 % SPDX-License-Identifier: LPPL-1.3c
4 % Maintainer: Alain Matthes
5
6 \typeout{2026/01/25 5.13c tkz-tools-eu-intersections.tex}
7 \makeatletter
8 %<--------------------------------------------------------------------------–>
9 % intersection de deux lignes
10 %<--------------------------------------------------------------------------–>
11 \def\tkzInterLL(#1,#2)(#3,#4){% méthode avec xfp
12 \tkz@InterLL(#1,#2)(#3,#4){tkzPointResult}
13 }
14
15 \def\tkz@InterLL(#1,#2)(#3,#4)#5{%
16 \pgfextractx{\pgf@x}{\pgfpointanchor{#1}{center}}%
17 \pgfextracty{\pgf@y}{\pgfpointanchor{#1}{center}}%
18 \tkz@ax\pgf@x%
19 \tkz@ay\pgf@y%
20 \pgfextractx{\pgf@x}{\pgfpointanchor{#2}{center}}%
21 \pgfextracty{\pgf@y}{\pgfpointanchor{#2}{center}}
22 \tkz@bx\pgf@x%
23 \tkz@by\pgf@y%
24 \pgfextractx{\pgf@x}{\pgfpointanchor{#3}{center}}%
25 \pgfextracty{\pgf@y}{\pgfpointanchor{#3}{center}}%
26 \tkz@cx\pgf@x%
27 \tkz@cy\pgf@y%
28 \pgfextractx{\pgf@x}{\pgfpointanchor{#4}{center}}%
29 \pgfextracty{\pgf@y}{\pgfpointanchor{#4}{center}}%
30 \tkz@dx\pgf@x%
31 \tkz@dy\pgf@y%
32 \edef\tkz@deltax{\fpeval{(\tkz@ax-\tkz@bx)/(28.45274)}}
33 \edef\tkz@deltaxx{\fpeval{(\tkz@cx-\tkz@dx)/(28.45274)}}
34 \edef\tkz@deltay{\fpeval{(\tkz@ay-\tkz@by)/(28.45274)}}
35 \edef\tkz@deltayy{\fpeval{(\tkz@cy-\tkz@dy)/(28.45274)}}
36 \edef\tkz@deltaxy{\fpeval{((\tkz@ax*\tkz@by)-(\tkz@ay*\tkz@bx))/(809.55841)}}
37 \edef\tkz@deltaxxyy{\fpeval{((\tkz@cx*\tkz@dy)-(\tkz@cy*\tkz@dx))/(809.55841)}}
38 \edef\tkz@div{\fpeval{(\tkz@deltax*\tkz@deltayy)-(\tkz@deltay*\tkz@deltaxx)}}
39 \edef\tkz@numx{\fpeval{(\tkz@deltaxy*\tkz@deltaxx)-(\tkz@deltax*\tkz@deltaxxyy)}}
40 \edef\tkz@numy{\fpeval{(\tkz@deltaxy*\tkz@deltayy)-(\tkz@deltay*\tkz@deltaxxyy)}}
41 \edef\tkz@xs{\fpeval{round(\tkz@numx/\tkz@div,5)}}
42 \edef\tkz@ys{\fpeval{round(\tkz@numy/\tkz@div,5)}}
43 \path[coordinate](\tkz@xs,\tkz@ys) coordinate (#5);
44 }
45
46
47 % méthode with coordinates
48 \def\tkzInterLLxy(#1,#2,#3,#4)(#5,#6,#7,#8){%
49 %\path (intersection of #1--#2 and #3--#4) coordinate(#5);%
50 \tkz@ax#1%
51 \tkz@ay#2%
52 \tkz@bx#3%
53 \tkz@by#4%
54 \tkz@cx#5%
55 \tkz@cy#6%
56 \tkz@dx#7%
57 \tkz@dy#8%
58 \edef\tkz@deltax{\fpeval{(\tkz@ax-\tkz@bx)/(28.45274)}}
59 \edef\tkz@deltaxx{\fpeval{(\tkz@cx-\tkz@dx)/(28.45274)}}
60 \edef\tkz@deltay{\fpeval{(\tkz@ay-\tkz@by)/(28.45274)}}
61 \edef\tkz@deltayy{\fpeval{(\tkz@cy-\tkz@dy)/(28.45274)}}
62 \edef\tkz@deltaxy{\fpeval{((\tkz@ax*\tkz@by)-(\tkz@ay*\tkz@bx))/(809.55841)}}
63 \edef\tkz@deltaxxyy{\fpeval{((\tkz@cx*\tkz@dy)-(\tkz@cy*\tkz@dx))/(809.55841)}}
64 \edef\tkz@div{\fpeval{(\tkz@deltax*\tkz@deltayy)-(\tkz@deltay*\tkz@deltaxx)}}
65 \edef\tkz@numx{\fpeval{(\tkz@deltaxy*\tkz@deltaxx)-(\tkz@deltax*\tkz@deltaxxyy)}}
66 \edef\tkz@numy{\fpeval{(\tkz@deltaxy*\tkz@deltayy)-(\tkz@deltay*\tkz@deltaxxyy)}}
67 \edef\tkz@xs{\fpeval{round(\tkz@numx/\tkz@div,5)}}
68 \edef\tkz@ys{\fpeval{round(\tkz@numy/\tkz@div,5)}}
69 \path[coordinate](\tkz@xs,\tkz@ys) coordinate (tkzPointResult);
70 }
71
72 %<--------------------------------------------------------------------------–>
73 % intersection de Ligne Cercle rayon connu
74 %<--------------------------------------------------------------------------–>
75 % /*
76 % Calculate the intersection of a ray and a sphere
77 % The line segment is defined from p1 to p2
78 % The sphere is of radius r and centered at sc
79 % There are potentially two points of intersection given by
80 % p = p1 + mu1 (p2 - p1)
81 % p = p1 + mu2 (p2 - p1)
82 % Return FALSE if the ray doesn't intersect the sphere.
83 % */
84 % int RaySphere(XYZ p1,XYZ p2,XYZ sc,double r,double *mu1,double *mu2)
85 % {
86 % double a,b,c;
87 % double bb4ac;
88 % XYZ dp;
89 %
90 % dp.x = p2.x - p1.x;
91 % dp.y = p2.y - p1.y;
92 % dp.z = p2.z - p1.z;
93 % a = dp.x * dp.x + dp.y * dp.y + dp.z * dp.z;
94 % b = 2 * (dp.x * (p1.x - sc.x) + dp.y * (p1.y - sc.y) + dp.z * (p1.z - sc.z));
95 % c = sc.x * sc.x + sc.y * sc.y + sc.z * sc.z;
96 % c += p1.x * p1.x + p1.y * p1.y + p1.z * p1.z;
97 % c -= 2 * (sc.x * p1.x + sc.y * p1.y + sc.z * p1.z);
98 % c -= r * r;
99 % bb4ac = b * b - 4 * a * c;
100 % if (ABS(a) < EPS || bb4ac < 0) {
101 % *mu1 = 0;
102 % *mu2 = 0;
103 % return(FALSE);
104 % }
105 %
106 % *mu1 = (-b + sqrt(bb4ac)) / (2 * a);
107 % *mu2 = (-b - sqrt(bb4ac)) / (2 * a);
108 %
109 % return(TRUE);
110 % }
111 %<---------- test ------------------------------------------------------–>
112 \def\tkzTestInterLC(#1,#2)(#3,#4){%
113 \begingroup
114 \tkz@Projection(#1,#2)(#3){tkz@pth}% distance centre à la ligne
115 \tkz@@CalcLength(#3,tkz@pth){tkz@mathLen}%
116 \tkz@@CalcLength(#3,#4){tkzLengthResult}%calcul du rayon
117 \ifdim\tkz@mathLen pt>\tkzLengthResult pt\relax%
118 \global\tkzFlagLCfalse
119 \else
120 \global\tkzFlagLCtrue
121 \fi
122 \endgroup
123 }
124 %<--------------------------------------------------------------------------–>
125 \def\tkz@numlc{0}
126 \pgfkeys{/linecircle/.cd,
127 node/.code = \def\tkz@numlc{0},
128 R/.code = \def\tkz@numlc{1},
129 with nodes/.code = \def\tkz@numlc{2},
130 common/.store in = \tkz@common,
131 common = {},
132 near/.is if = tkz@near,
133 near/.default = true,
134 near = false,
135 next to/.store in = \tkz@nextto,
136 next to/.initial = {},
137 next/.default = {},
138 next to = {},
139 next to/.value required,
140 node
141 }
142 %<--------------------------------------------------------------------------–>
143 \def\tkzInterLC{\pgfutil@ifnextchar[{\tkz@InterLC}{\tkz@InterLC[]}}
144 \def\tkz@InterLC[#1](#2,#3)(#4,#5){%
145 \begingroup
146 \pgfqkeys{/linecircle}{#1}
147 \pgfinterruptboundingbox
148 \ifcase\tkz@numlc%
149 % first case 0
150 \tkz@@CalcLength(#4,#5){tkzLengthResult}
151 \tkzInterLCR(#2,#3)(#4,\tkzLengthResult pt){tkzFirstPointResult}%
152 {tkzSecondPointResult}
153 \or% 1
154 \tkzInterLCR(#2,#3)(#4,#5 cm){tkzFirstPointResult}
155 {tkzSecondPointResult}%
156 \or% 2
157 \tkzInterLCWithNodes(#2,#3)(#4,#5){tkzFirstPointResult}%
158 {tkzSecondPointResult}%
159 \fi
160 \iftkz@near
161 \tkz@@CalcLength(#2,tkzFirstPointResult){tkzLengthFirst}
162 \tkz@@CalcLength(#2,tkzSecondPointResult){tkzLengthSecond}
163 \ifdim \tkzLengthFirst pt < \tkzLengthSecond pt\relax%
164 \else
165 \pgfnodealias{tkzPointTmp}{tkzSecondPointResult}
166 \pgfnodealias{tkzSecondPointResult}{tkzFirstPointResult}
167 \pgfnodealias{tkzFirstPointResult}{tkzPointTmp}
168 \fi
169 \else
170 \ifx\tkz@common\tkzutil@empty
171 \ifx\tkz@nextto\tkzutil@empty
172 \tkzFindAngle(tkzSecondPointResult,tkzFirstPointResult,#4)
173 \tkzGetAngle{tkz@an}
174 \ifdim\tkz@an pt<180 pt\relax%
175 \else
176 \pgfnodealias{tkzPointTmp}{tkzSecondPointResult}
177 \pgfnodealias{tkzSecondPointResult}{tkzFirstPointResult}
178 \pgfnodealias{tkzFirstPointResult}{tkzPointTmp}
179 \fi
180 \else
181 \tkz@@CalcLength(\tkz@nextto,tkzFirstPointResult){tkzLengthFirst}
182 \tkz@@CalcLength(\tkz@nextto,tkzSecondPointResult){tkzLengthSecond}
183 \ifdim \tkzLengthFirst pt < \tkzLengthSecond pt\relax%
184 \else
185 \pgfnodealias{tkzPointTmp}{tkzSecondPointResult}
186 \pgfnodealias{tkzSecondPointResult}{tkzFirstPointResult}
187 \pgfnodealias{tkzFirstPointResult}{tkzPointTmp}
188 \fi
189 \fi
190 \else
191 \tkz@@CalcLength(\tkz@common,tkzSecondPointResult){tkz@mathLen}
192 \ifdim\tkz@mathLen pt<1pt\relax%
193 \else
194 \pgfnodealias{tkzPointTmp}{tkzSecondPointResult}
195 \pgfnodealias{tkzSecondPointResult}{tkzFirstPointResult}
196 \pgfnodealias{tkzFirstPointResult}{tkzPointTmp}
197 \fi
198 \fi
199 \fi%near
200 \endpgfinterruptboundingbox
201 \endgroup
202 }
203 %<--------------------------------------------------------------------------–>
204 %<--------------------------------------------------------------------------–>
205 \def\tkzInterLCR(#1,#2)(#3,#4)#5#6{%
206 \begingroup
207 \tkz@radi=#4%
208 \tkz@@extractxy{#3}
209 \tkz@bx =\pgf@x\relax%
210 \tkz@by =\pgf@y\relax%
211 \tkz@Projection(#1,#2)(#3){tkz@pth}
212 \tkz@@CalcLength(#3,tkz@pth){tkz@mathLen}
213 \ifdim\tkz@mathLen pt<0.05pt\relax%
214 \pgfpointdiff{\pgfpointanchor{#1}{center}}%
215 {\pgfpointanchor{#2}{center}}%
216 \tkz@ax=\pgf@x%
217 \tkz@ay=\pgf@y%
218 \pgfpointborderellipse{\pgfpoint{\tkz@ax}{\tkz@ay}}%
219 {\pgfpoint{\tkz@radi}{\tkz@radi}}
220 \tkz@ax=\pgf@x\relax%
221 \tkz@ay=\pgf@y\relax%
222 \advance\tkz@bx by\tkz@ax\relax%
223 \advance\tkz@by by\tkz@ay\relax%
224 \pgfcoordinate{#6}{\pgfqpoint{\tkz@bx}{\tkz@by}}
225 \tkzCSym(#3)(#6){#5}
226 \else
227 \edef\pgfmathresult{\fpeval{\tkz@mathLen/\tkz@radi}}
228 % \edef\tkz@angle{\fpeval{acosd(\pgfmathresult)}}
229 \pgfmathacos@{\pgfmathresult}%
230 \let\tkz@angle\pgfmathresult%
231 \pgfpointdiff{\pgfpointanchor{#3}{center}}%
232 {\pgfpointanchor{tkz@pth}{center}}%
233 \tkz@ax=\pgf@x%
234 \tkz@ay=\pgf@y%
235 \pgfpointborderellipse{\pgfpoint{\tkz@ax}{\tkz@ay}}%
236 {\pgfpoint{\tkz@radi}{\tkz@radi}}
237 \tkz@ax =\pgf@x\relax%
238 \tkz@ay =\pgf@y\relax%
239 \advance\tkz@bx by\tkz@ax\relax%
240 \advance\tkz@by by\tkz@ay\relax%
241 \tkz@@extractxy{#3}
242 \tkz@ax =\pgf@x\relax%
243 \tkz@ay =\pgf@y\relax%
244 \tkz@@extractxy{tkz@pth}
245 \pgfmathrotatepointaround{\pgfpoint{\tkz@bx}{\tkz@by}}%
246 {\pgfpoint{\tkz@ax}{\tkz@ay}}%
247 {\tkz@angle}
248 \pgfcoordinate{#5}{\pgfqpoint{\pgf@x}{\pgf@y}}
249 \pgfmathrotatepointaround{\pgfpoint{\tkz@bx}{\tkz@by}}%
250 {\pgfpoint{\tkz@ax}{\tkz@ay}}%
251 {-\tkz@angle}
252 \pgfcoordinate{#6}{\pgfqpoint{\pgf@x}{\pgf@y}}
253
254 \fi
255 \endgroup
256 }
257 %<--------------------------------------------------------------------------–>
258 % intersection de Ligne Cercle
259 % #4 center #5 point sur le cercle
260 %<--------------------------------------------------------------------------–>
261 % \def\tkzInterLC(#1,#2)(#3,#4)#5#6{%
262 % \begingroup
263 % \tkz@@CalcLength(#3,#4){tkz@rad}
264 % \tkzInterLCR(#1,#2)(#3,\tkz@rad pt){#5}{#6}
265 % \endgroup
266 % }
267 %<--------------------------------------------------------------------------–>
268 % intersection de Ligne Cercle rayon inconnu
269 %<--------------------------------------------------------------------------–>
270 \def\tkzInterLCWithNodes(#1,#2)(#3,#4,#5)#6#7{%
271 \begingroup
272 \tkz@@CalcLength(#4,#5){tkz@radius}
273 \tkzInterLCR(#1,#2)(#3,\tkz@radius pt){#6}{#7}
274 \endgroup
275 }
276 %<--------------------------------------------------------------------------–>
277 % Intersection of 2 circles
278 %<--------------------------------------------------------------------------–>
279 %<--------------------------------------------------------------------------–>
280 % méthode
281 % /* circle_circle_intersection() *
282 % * Determine the points where 2 circles in a common plane intersect.
283 % *
284 % * int circle_circle_intersection(
285 % * // center and radius of 1st circle
286 % * double x0, double y0, double r0,
287 % * // center and radius of 2nd circle
288 % * double x1, double y1, double r1,
289 % * // 1st intersection point
290 % * // 2nd intersection point
291 % *
292 % * This is a public domain work. 3/26/2005 Tim Voght
293 % *
294 % int circle_circle_intersection(double x0, double y0, double r0,
295 % double x1, double y1, double r1,
296 % double *xi, double *yi,
297 % double *xi_prime, double *yi_prime)
298 % {
299 % double a, dx, dy, d, h, rx, ry;
300 % double x2, y2;
301 %
302 % /* dx and dy are the vertical and horizontal distances between
303 % * the circle centers.
304 % */
305 % dx = x1 - x0;
306 % dy = y1 - y0;
307 %
308 % /* Determine the straight-line distance between the centers. */
309 % //d = sqrt((dy*dy) + (dx*dx));
310 % d = hypot(dx,dy); // Suggested by Keith Briggs
311 %
312 % /* Check for solvability. */
313 % if (d > (r0 + r1))
314 % {
315 % /* no solution. circles do not intersect. */
316 % return 0;
317 % }
318 % if (d < fabs(r0 - r1))
319 % {
320 % /* no solution. one circle is contained in the other */
321 % return 0;
322 % }
323 %
324 % /* 'point 2' is the point where the line through the circle
325 % * intersection points crosses the line between the circle
326 % * centers.
327 % */
328 %
329 % /* Determine the distance from point 0 to point 2. */
330 % a = ((r0*r0) - (r1*r1) + (d*d)) / (2.0 * d) ;
331 %
332 % /* Determine the coordinates of point 2. */
333 % x2 = x0 + (dx * a/d);
334 % y2 = y0 + (dy * a/d);
335 %
336 % /* Determine the distance from point 2 to either of the
337 % * intersection points.
338 % */
339 % h = sqrt((r0*r0) - (a*a));
340 %
341 % /* Now determine the offsets of the intersection points from
342 % * point 2.
343 % */
344 % rx = -dy * (h/d);
345 % ry = dx * (h/d);
346 %
347 % /* Determine the absolute intersection points. */
348 % *xi = x2 + rx;
349 % *xi_prime = x2 - rx;
350 % *yi = y2 + ry;
351 % *yi_prime = y2 - ry;
352 %
353 % return 1;
354 % }
355 %<--------------------------------------------------------------------------–>
356 % Intersection de deux cercles
357 %<--------------------------------------------------------------------------–>
358 %<---------- test ------------------------------------------------------–>
359 % test avec des nodes R-r <= d <= R+r
360 \def\tkzTestInterCC(#1,#2)(#3,#4){%
361 \begingroup
362 \tkz@@CalcLength(#1,#3){tkz@mathLen}% distance entre les centres
363 \tkz@@CalcLength(#2,#1){tkz@rA}%calcul du rayon
364 \tkz@@CalcLength(#4,#3){tkz@rB}%calcul du rayon
365 % test if d <= rA + rB ?
366 \edef\tkz@rS{\fpeval{\tkz@rA+\tkz@rB}}
367 \ifdim\tkz@mathLen pt > \tkz@rS pt\relax%
368 \global\tkzFlagCCfalse
369 \else
370 % now test if d>= rA - rB or rB-rA
371 \ifdim \tkz@rA pt > \tkz@rB pt\relax%
372 \edef\tkz@rD{\fpeval{\tkz@rA-\tkz@rB}}
373 \else
374 \edef\tkz@rD{\fpeval{\tkz@rB-\tkz@rA}}
375 \fi
376 \ifdim \tkz@rD pt > \tkz@mathLen pt\relax%
377 \global\tkzFlagCCfalse
378 \else
379 \global\tkzFlagCCtrue
380 \fi
381 \fi
382 \endgroup
383 }
384
385 \def\tkz@numcc{0}
386 \pgfkeys{
387 /circlecircle/.cd,
388 node/.code = \def\tkz@numcc{0},
389 R/.code = \def\tkz@numcc{1},
390 with nodes/.code = \def\tkz@numcc{2},
391 common/.store in = \tkz@common,
392 common = {},
393 node
394 }
395 %<--------------------------------------------------------------------------–>
396 \def\tkzInterCC{\pgfutil@ifnextchar[{\tkz@InterCC}{\tkz@InterCC[]}}
397 \def\tkz@InterCC[#1](#2,#3)(#4,#5){%
398 \begingroup
399 \pgfqkeys{/circlecircle}{#1}
400 \ifcase\tkz@numcc%
401 % first case 0
402 \tkz@save@length
403 \tkz@@CalcLengthcm(#2,#3){tkz@rayA}
404 \tkz@@CalcLengthcm(#4,#5){tkz@rayB}
405 \tkz@restore@length
406 \tkzInterCCR(#2,\tkz@rayA)(#4,\tkz@rayB){tkzFirstPointResult}{tkzSecondPointResult}
407 \or% 1
408 \tkzInterCCR(#2,#3)(#4,#5){tkzFirstPointResult}{tkzSecondPointResult}%
409 \or%2
410 \tkzInterCCWithNodes(#2,#3)(#4,#5){tkzFirstPointResult}{tkzSecondPointResult}
411 \fi
412 \ifx\tkz@common\tkzutil@empty
413 \tkzFindAngle(#2,tkzFirstPointResult,#4) \tkzGetAngle{tkz@an}
414 \ifdim\tkz@an pt<180 pt\relax%
415 \else
416 \pgfnodealias{tkzPointTmp}{tkzSecondPointResult}
417 \pgfnodealias{tkzSecondPointResult}{tkzFirstPointResult}
418 \pgfnodealias{tkzFirstPointResult}{tkzPointTmp}
419 \fi
420 \else
421 \tkz@@CalcLength(\tkz@common,tkzSecondPointResult){tkz@mathLen}
422 \ifdim\tkz@mathLen pt<0.05pt\relax%
423 \else
424 \pgfnodealias{tkzPointTmp}{tkzSecondPointResult}
425 \pgfnodealias{tkzSecondPointResult}{tkzFirstPointResult}
426 \pgfnodealias{tkzFirstPointResult}{tkzPointTmp}
427 \fi
428 \fi
429 \endgroup
430 }
431 %<--------------------------------------------------------------------------–>
432
433 \def\tkzInterCCR(#1,#2)(#3,#4)#5#6{%
434 \begingroup
435 \pgfinterruptboundingbox
436 \tkz@save@length
437 \tkz@@CalcLength(#1,#3){tkz@dd}
438 \tkz@restore@length
439 \pgfextractx{\pgf@x}{\pgfpointanchor{#1}{center}}
440 \pgfextracty{\pgf@y}{\pgfpointanchor{#1}{center}}
441 \tkz@ax\pgf@x %
442 \tkz@ay\pgf@y %
443 \pgfextractx{\pgf@x}{\pgfpointanchor{#3}{center}}
444 \pgfextracty{\pgf@y}{\pgfpointanchor{#3}{center}}
445 \tkz@bx\pgf@x %
446 \tkz@by\pgf@y %
447 \tkz@cx#2cm %
448 \tkz@cy#4cm %
449 \edef\tkz@aa{\fpeval{((\tkz@cx+\tkz@cy)/(2*\tkz@dd))*(\tkz@cx-\tkz@cy)+\tkz@dd/2}}
450 \edef\tkz@xx{\fpeval{\tkz@ax+\tkz@aa/\tkz@dd*(\tkz@bx - \tkz@ax)}}
451 \edef\tkz@yy{\fpeval{\tkz@ay+\tkz@aa/\tkz@dd*(\tkz@by - \tkz@ay)}}
452 \path[coordinate](\tkz@xx pt,\tkz@yy pt) coordinate (tkzRadialCenter);
453 \edef\tkz@hh{\fpeval{sqrt(abs((\tkz@cx+\tkz@aa)*(\tkz@cx-\tkz@aa)))}}% abs !2024
454 \edef\tkz@rx{\fpeval{\tkz@hh / \tkz@dd * (\tkz@ay - \tkz@by)}}
455 \edef\tkz@ry{\fpeval{\tkz@hh / \tkz@dd * (\tkz@bx - \tkz@ax)}}
456 \edef\tkz@xs{\fpeval{\tkz@xx + \tkz@rx}}
457 \edef\tkz@ys{\fpeval{\tkz@yy + \tkz@ry}}
458 \path[coordinate](\tkz@xs pt,\tkz@ys pt) coordinate (#5);
459 \edef\tkz@xss{\fpeval{\tkz@xx - \tkz@rx}}
460 \edef\tkz@yss{\fpeval{\tkz@yy - \tkz@ry}}
461 \path[coordinate](\tkz@xss pt,\tkz@yss pt) coordinate (#6);
462 \endpgfinterruptboundingbox
463 \endgroup
464 }
465 %<--------------------------------------------------------------------------–>
466 % #2 node #3 node #4 node #5 node
467 % \def\tkzInterCC(#1,#2)(#3,#4)#5#6{%
468 % \begingroup
469 % \tkz@@CalcLength(#1,#2){tkz@rayA}
470 % \tkz@@CalcLength(#3,#4){tkz@rayB}
471 % \tkzInterCCR(#1,\tkz@rayA pt)(#3,\tkz@rayB pt){#5}{#6}
472 % \endgroup
473 % }
474 %<--------------------------------------------------------------------------–>
475 % Intersection de deux cercles Avec deux points
476 %<--------------------------------------------------------------------------–>
477 % la première variante devrait être #2 #3 avec #4 #5
478 \def\tkzInterCCWithNodes(#1,#2,#3)(#4,#5,#6)#7#8{%
479 \begingroup
480 \tkz@@CalcLengthcm(#2,#3){tkz@rayA}
481 \tkz@@CalcLengthcm(#5,#6){tkz@rayB}
482 \tkzInterCCR(#1,\tkz@rayA)(#4,\tkz@rayB){#7}{#8}
483 \endgroup
484 }
485 \makeatother
486 \endinput