Debian Codegraph @

texmf-dist/tex/latex/tkz-euclide/tkz-obj-eu-points-spc.tex

raw
1 % tkz-obj-eu-points.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-obj-el-points.tex}
7 \makeatletter
8 %add ExCenter
9 %<--------------------------------------------------------------------------–>
10 % Specific points
11 %<--------------------------------------------------------------------------–>
12 % barycentre
13 %<--------------------------------------------------------------------------–>
14 \def\tkzDefBarycentricPoint(#1){%
15 \begingroup
16 \path[coordinate] (barycentric cs:#1) coordinate (tkzPointResult);
17 \endgroup
18 }
19 \let\tkzDefBCPoint\tkzDefBarycentricPoint
20
21 %<--------------------------------------------------------------------------–>
22 % milieu de deux points
23 %<--------------------------------------------------------------------------–>
24 % possible \coordinate (#3) at ($(#1)!0.5!(#2)$);
25 %<--------------------------------------------------------------------------–>
26 % \def\tkzDefMidPoint(#1,#2){%
27 % \begingroup
28 % \path (#1) -- (#2) coordinate[pos=.5](tkzPointResult);
29 % \endgroup
30 % }
31 \def\tkzDefMidPoint(#1,#2){%
32 \begingroup
33 \pgf@process{\pgfpointanchor{#1}{center}}%
34 \tkz@ax\pgf@x%
35 \tkz@ay\pgf@y%
36 \pgf@process{\pgfpointanchor{#2}{center}}%
37 \tkz@bx\pgf@x%
38 \tkz@by\pgf@y%
39 \advance\tkz@bx by\tkz@ax\relax%
40 \advance\tkz@by by\tkz@ay\relax%
41 \divide\tkz@bx by2\relax%
42 \divide\tkz@by by2\relax
43 \pgfcoordinate{tkzPointResult}{\pgfqpoint{\tkz@bx}{\tkz@by}}
44 \endgroup
45 }
46 \def\tkz@DefMidPoint(#1,#2,#3,#4){%
47 \begingroup
48 \tkz@ax#1%
49 \tkz@ay#2%
50 \tkz@bx#3%
51 \tkz@by#4%
52 \advance\tkz@bx by\tkz@ax\relax%
53 \advance\tkz@by by\tkz@ay\relax%
54 \divide\tkz@bx by2\relax%
55 \divide\tkz@by by2\relax
56 \pgfcoordinate{tkzPointResult}{\pgfqpoint{\tkz@bx}{\tkz@by}}
57 \endgroup
58 }
59 %<--------------------------------------------------------------------------–>
60 \def\tkz@simicenter{0}
61 \pgfkeys{/tkzsimicenter/.cd,
62 ext/.code = \def\tkz@simicenter{0},
63 int/.code = \def\tkz@simicenter{1},
64 ext
65 }%
66
67 \def\tkzDefSimilitudeCenter{\pgfutil@ifnextchar[{\tkz@DefSimilitudeCenter}%
68 {\tkz@DefSimilitudeCenter[]}}
69 \def\tkz@DefSimilitudeCenter[#1](#2,#3)(#4,#5){%
70 \pgfqkeys{/tkzsimicenter}{#1}
71 \begingroup
72 \ifcase\tkz@simicenter%
73 \tkzDefExtSimilitudeCenter[#1](#2,#3)(#4,#5)
74 \or% 1
75 \tkzDefIntSimilitudeCenter[#1](#2,#3)(#4,#5)
76 \fi
77 \endgroup
78 }
79 %<--------------------------------------------------------------------------–>
80 % Internal Similitude center
81 % Two circles have two similitude centers namely the internal center of
82 % similitude Si and the external similitude center Se.
83 %<--------------------------------------------------------------------------–>
84 \def\tkz@numhomo{0}
85 \pgfkeys{
86 /tkzSimilitudeCenter/.cd,
87 node/.code = \def\tkz@numhomo{0},
88 R/.code = \def\tkz@numhomo{1},
89 node,
90 /tkzSimilitudeCenter/.unknown/.code = {\let\searchname=\pgfkeyscurrentname
91 \pgfkeysalso{\searchname/.try=#1, /tikz/\searchname/.retry=#1}}
92 }
93 \def\tkzDefIntSimilitudeCenter{\pgfutil@ifnextchar[{\tkz@DefIntSimilitudeCenter}{\tkz@DefIntSimilitudeCenter[]}}
94 \def\tkz@DefIntSimilitudeCenter[#1](#2,#3)(#4,#5){%
95 \begingroup
96 \pgfqkeys{/tkzSimilitudeCenter}{#1}
97 \ifcase\tkz@numhomo%
98 \tkz@@CalcLengthcm(#2,#3){tkz@rt}%
99 \tkz@@CalcLengthcm(#4,#5){tkz@rf}%
100 \or% 1
101 \def\tkz@rt{#3}%
102 \def\tkz@rf{#5}%
103 \fi
104 \pgfinterruptboundingbox
105 \path[coordinate](barycentric cs:#2=\tkz@rf,#4=\tkz@rt)coordinate (tkzPointResult);
106 \endpgfinterruptboundingbox
107 \endgroup
108 }
109 \let\tkzDefIntHomotheticCenter\tkzDefIntSimilitudeCenter
110 %<--------------------------------------------------------------------------–>
111 % External Similitude center
112 %<--------------------------------------------------------------------------–>
113 \def\tkzDefExtSimilitudeCenter{\pgfutil@ifnextchar[{\tkz@DefExtSimilitudeCenter}{\tkz@DefExtSimilitudeCenter[]}}
114
115 \def\tkz@DefExtSimilitudeCenter[#1](#2,#3)(#4,#5){%
116 \begingroup
117 \pgfqkeys{/tkzSimilitudeCenter}{#1}
118 \ifcase\tkz@numhomo%
119 \tkz@@CalcLengthcm(#2,#3){tkz@rt}%
120 \tkz@@CalcLengthcm(#4,#5){tkz@rf}%
121 \or% 1
122 \def\tkz@rt{#3}%
123 \def\tkz@rf{#5}%
124 \fi
125 \pgfinterruptboundingbox
126 \path[coordinate](barycentric cs:#2=-\tkz@rf,#4=\tkz@rt) coordinate(tkzPointResult);
127 \endpgfinterruptboundingbox
128 \endgroup
129 }
130
131 \let\tkzDefExtHomotheticCenter\tkzDefExtSimilitudeCenter
132 %<--------------------------------------------------------------------------–>
133 % Harmonic Division
134 %<--------------------------------------------------------------------------–>
135 % A , B , C ,D CA/CB = DA/DB
136 %<--------------------------------------------------------------------------–>
137 \def\tkz@numdha{0}
138 \pgfkeys{/tkzharmonic/.cd,
139 ext/.code = \def\tkz@numdha{0},
140 int/.code = \def\tkz@numdha{1},
141 both/.code = \def\tkz@numdha{2},
142 both,
143 }%
144
145 \def\tkzDivHarmonic{\pgfutil@ifnextchar[{\tkz@DivHarmonic}{\tkz@DivHarmonic[]}}
146 \def\tkz@DivHarmonic[#1](#2){%
147 \begingroup
148 \pgfqkeys{/tkzharmonic}{#1}
149 \ifcase\tkz@numdha%
150 \tkzDefDivHarmonicExt(#2)
151 \or%
152 \tkzDefDivHarmonicInt(#2)
153 \or%
154 \tkzDefDivHarmonicBoth(#2)
155 \fi
156 \endgroup
157 }
158
159 \def\tkzDefDivHarmonicExt(#1,#2,#3){%
160 \begingroup
161 \pgfinterruptboundingbox
162 \tkz@VecKOrth[](#1,#2) \tkzGetPoint{tkz@px}
163 \tkzDefMidPoint(tkz@px,#2) \tkzGetPoint{tkz@py}
164 \tkzInterLL(tkz@px,#3)(#1,tkz@py) \tkzGetPoint{tkz@pz}
165 \tkzInterLL(#2,tkz@pz)(#1,tkz@px) \tkzGetPoint{tkz@px}
166 \tkzInterLL(tkz@py,tkz@px)(#1,#2) \tkzGetPoint{tkzPointResult}
167 \endpgfinterruptboundingbox
168 \endgroup
169 }
170
171 \def\tkzDefDivHarmonicInt(#1,#2,#3){%
172 \begingroup
173 \pgfinterruptboundingbox
174 \tkz@VecKOrth[1](#1,#2) \tkzGetPoint{tkz@px}
175 \tkzDefMidPoint(tkz@px,#2) \tkzGetPoint{tkz@py}
176 \tkzInterLL(tkz@py,#3)(#1,tkz@px) \tkzGetPoint{tkz@pz}
177 \tkzInterLL(#2,tkz@pz)(#1,tkz@py) \tkzGetPoint{tkz@py}
178 \tkzInterLL(tkz@py,tkz@px)(#1,#2) \tkzGetPoint{tkzPointResult}
179 \endpgfinterruptboundingbox
180 \endgroup
181 }
182
183 \def\tkzDefDivHarmonicBoth(#1,#2,#3){%
184 \begingroup
185 \edef\tkz@k{\fpeval{#3}}
186 \path[coordinate] (barycentric cs:#1=1,#2={\tkz@k}) coordinate (tkzFirstPointResult);
187 \path[coordinate] (barycentric cs:#1=1,#2={-\tkz@k}) coordinate (tkzSecondPointResult);
188 \endgroup
189 }
190
191 \let\tkzDefHarmonic\tkzDivHarmonic
192 %<--------------------------------------------------------------------------–>
193 % golden ratio
194 %<--------------------------------------------------------------------------–>
195 \def\tkzDefGoldenRatio(#1,#2){%
196 \begingroup
197 \tkzDefPointWith[linear,K=\tkzInvPhi](#1,#2)
198 \endgroup
199 }
200 %<--------------------------------------------------------------------------–>
201 % triangle center
202 %<--------------------------------------------------------------------------–>
203
204 \def\tkz@numtc{0}
205 \pgfkeys{/tkzDefTriangleCenter/.cd,
206 ortho/.code = \def\tkz@numtc{0},
207 orthic/.code = \def\tkz@numtc{0},
208 centroid/.code = \def\tkz@numtc{1},
209 median/.code = \def\tkz@numtc{1},
210 circum/.code = \def\tkz@numtc{2},
211 in/.code = \def\tkz@numtc{3},
212 ex/.code = \def\tkz@numtc{4},
213 euler/.code = \def\tkz@numtc{5},
214 symmedian/.code = \def\tkz@numtc{6},
215 lemoine/.code = \def\tkz@numtc{6},
216 grebe/.code = \def\tkz@numtc{6},
217 spieker/.code = \def\tkz@numtc{7},
218 gergonne/.code = \def\tkz@numtc{8},
219 nagel/.code = \def\tkz@numtc{9},
220 mittenpunkt/.code = \def\tkz@numtc{10},
221 feuerbach/.code = \def\tkz@numtc{11},
222 circum
223 }
224 \def\tkzDefTriangleCenter{\pgfutil@ifnextchar[{\tkz@DefTriangleCenter}{\tkz@DefTriangleCenter[]}}
225 \def\tkz@DefTriangleCenter[#1](#2){%
226 \begingroup
227 \pgfqkeys{/tkzDefTriangleCenter}{#1}
228 \ifcase\tkz@numtc%
229 \tkzOrthoCenter(#2)
230 \or% 1
231 \tkzCentroid(#2)
232 \or% 2
233 \tkzCircumCenter(#2)
234 \or% 3
235 \tkzInCenter(#2)
236 \or% 4
237 \tkzExCenter(#2)
238 \or% 5
239 \tkzEulerCenter(#2)
240 \or% 6
241 \tkzSymmedianCenter(#2)
242 \or% 7
243 \tkzSpiekerCenter(#2)
244 \or% 8
245 \tkzGergonneCenter(#2)
246 \or%9
247 \tkzNagelCenter(#2)
248 \or%10
249 \tkzMittenpunktCenter(#2)
250 \or%11
251 \tkzFeuerbachCenter(#2)
252 \fi
253 \endgroup
254 }
255 %<--------------------------------------------------------------------------–>
256 % OrthoCenter
257 %<--------------------------------------------------------------------------–>
258 \def\tkzOrthoCenter(#1,#2,#3){%
259 \begingroup
260 \pgfinterruptboundingbox
261 \tkzUProjection(#1,#2)(#3)
262 \pgfnodealias{ort@pta}{tkzPointResult}
263 \tkzUProjection(#1,#3)(#2)
264 \pgfnodealias{ort@ptb}{tkzPointResult}
265 \tkzInterLL(#2,ort@ptb)(#3,ort@pta)
266 \endpgfinterruptboundingbox
267 \endgroup
268 }
269 \let\tkzDefOrthoCenter\tkzOrthoCenter
270 %<--------------------------------------------------------------------------–>
271 % GravityCenter modif 3.03
272 %<--------------------------------------------------------------------------–>
273 \def\tkzCentroid(#1,#2,#3){%
274 \begingroup
275 \pgf@process{\pgfpointanchor{#1}{center}}%
276 \tkz@ax\pgf@x%
277 \tkz@ay\pgf@y%
278 \pgf@process{\pgfpointanchor{#2}{center}}%
279 \tkz@bx\pgf@x%
280 \tkz@by\pgf@y%
281 \pgf@process{\pgfpointanchor{#3}{center}}%
282 \tkz@cx\pgf@x%
283 \tkz@cy\pgf@y%
284 \advance\tkz@cx by\tkz@ax\relax%
285 \advance\tkz@cy by\tkz@ay\relax%
286 \advance\tkz@cx by\tkz@bx\relax%
287 \advance\tkz@cy by\tkz@by\relax%
288 \divide\tkz@cx by3\relax%
289 \divide\tkz@cy by3\relax
290 \pgfinterruptboundingbox
291 \pgfcoordinate{tkzPointResult}{\pgfqpoint{\tkz@cx}{\tkz@cy}}
292 \endpgfinterruptboundingbox
293 \endgroup
294 }
295 \let\tkzBaryCenter\tkzCentroid
296
297 %<--------------------------------------------------------------------------–>
298 % CircumCenter
299 %<--------------------------------------------------------------------------–>
300 \def\tkzCircumCenter(#1,#2,#3){%
301 \begingroup
302 \pgfinterruptboundingbox
303 \tkzDefMediatorLine(#1,#2)
304 \pgf@process{\pgfpointanchor{tkzFirstPointResult}{center}}%
305 \tkz@ax\pgf@x%
306 \tkz@ay\pgf@y%
307 \pgf@process{\pgfpointanchor{tkzSecondPointResult}{center}}%
308 \tkz@bx\pgf@x%
309 \tkz@by\pgf@y%
310 \tkzDefMediatorLine(#1,#3)
311 \pgf@process{\pgfpointanchor{tkzFirstPointResult}{center}}%
312 \tkz@cx\pgf@x%
313 \tkz@cy\pgf@y%
314 \pgf@process{\pgfpointanchor{tkzSecondPointResult}{center}}%
315 \tkz@dx\pgf@x%
316 \tkz@dy\pgf@y%
317 \tkzInterLLxy(\tkz@ax,\tkz@ay,\tkz@bx,\tkz@by)(\tkz@cx,\tkz@cy,\tkz@dx,\tkz@dy)%
318 \endpgfinterruptboundingbox
319 \endgroup
320 }
321 \let\tkzDefCircumCenter\tkzCircumCenter
322 %<--------------------------------------------------------------------------–>
323 % InCenter
324 %<--------------------------------------------------------------------------–>
325 \def\tkzInCenter(#1,#2,#3){%
326 \begingroup
327 \pgfinterruptboundingbox
328 \tkzDefBisectorLine(#3,#1,#2)
329 \pgf@process{\pgfpointanchor{tkzPointResult}{center}}%
330 \tkz@bx\pgf@x%
331 \tkz@by\pgf@y%
332 \tkzDefBisectorLine(#3,#2,#1)
333 \pgf@process{\pgfpointanchor{tkzPointResult}{center}}%
334 \tkz@dx\pgf@x%
335 \tkz@dy\pgf@y%
336 \pgf@process{\pgfpointanchor{#1}{center}}%
337 \tkz@ax\pgf@x%
338 \tkz@ay\pgf@y%
339 \pgf@process{\pgfpointanchor{#2}{center}}%
340 \tkz@cx\pgf@x%
341 \tkz@cy\pgf@y%
342 \tkzInterLLxy(\tkz@ax,\tkz@ay,\tkz@bx,\tkz@by)(\tkz@cx,\tkz@cy,\tkz@dx,\tkz@dy)%
343 \endpgfinterruptboundingbox
344 \endgroup
345 }
346 \let\tkzDefInCenter\tkzInCenter
347 %<--------------------------------------------------------------------------–>
348 % ExCenter
349 %<--------------------------------------------------------------------------–>
350 \def\tkzExCenter(#1,#2,#3){%
351 \begingroup
352 \pgfinterruptboundingbox
353 \tkzDefBisectorOutLine(#2,#1,#3)
354 \pgf@process{\pgfpointanchor{tkzPointResult}{center}}%
355 \tkz@bx\pgf@x%
356 \tkz@by\pgf@y%
357 \tkzDefBisectorOutLine(#2,#3,#1)
358 \pgf@process{\pgfpointanchor{tkzPointResult}{center}}%
359 \tkz@dx\pgf@x%
360 \tkz@dy\pgf@y%
361 \pgf@process{\pgfpointanchor{#1}{center}}%
362 \tkz@ax\pgf@x%
363 \tkz@ay\pgf@y%
364 \pgf@process{\pgfpointanchor{#3}{center}}%
365 \tkz@cx\pgf@x%
366 \tkz@cy\pgf@y%
367 \tkzInterLLxy(\tkz@ax,\tkz@ay,\tkz@bx,\tkz@by)(\tkz@cx,\tkz@cy,\tkz@dx,\tkz@dy)%
368 \endpgfinterruptboundingbox
369 \endgroup
370 }
371 \let\tkzDefExCenter\tkzExCenter
372 %<--------------------------------------------------------------------------–>
373 % EulerCenter neuf points
374 %<--------------------------------------------------------------------------–>
375 \def\tkzEulerCenter(#1,#2,#3){%
376 % mileu de orthocentre et centre cercle circonscrit
377 % passe par les midpoints par les pieds des hauteurs
378 \begingroup
379 \pgfinterruptboundingbox
380 \tkzDefMidPoint(#1,#2)
381 \pgfnodealias{eu@mic}{tkzPointResult}
382 \tkzDefMidPoint(#1,#3)
383 \pgfnodealias{eu@mib}{tkzPointResult}
384 \tkzDefMidPoint(#2,#3)
385 \pgfnodealias{eu@mia}{tkzPointResult}
386 \tkzCircumCenter(eu@mia,eu@mib,eu@mic)
387 \endpgfinterruptboundingbox
388 \endgroup
389 }
390 \let\tkzNinePointCenter\tkzEulerCenter
391 \let\tkzDefEulerCenter\tkzEulerCenter
392 %<--------------------------------------------------------------------------–>
393 %Symmedian center Lemoine point Grebe point K
394 %<--------------------------------------------------------------------------–>
395 \def\tkzSymmedianCenter(#1,#2,#3){%
396 \begingroup
397 \pgfinterruptboundingbox
398 \tkzDefMidPoint(#2,#3)
399 \pgfnodealias{eu@mic}{tkzPointResult}
400 \tkzDefMidPoint(#1,#3)
401 \pgfnodealias{eu@mib}{tkzPointResult}
402 \tkzUProjection(#2,#3)(#1)
403 \pgfnodealias{ort@pta}{tkzPointResult}
404 \tkzDefMidPoint(#1,ort@pta)
405 \pgfnodealias{eu@mid}{tkzPointResult}
406 \tkzUProjection(#1,#3)(#2)
407 \pgfnodealias{ort@ptb}{tkzPointResult}
408 \tkzDefMidPoint(#2,ort@ptb)
409 \pgfnodealias{eu@mie}{tkzPointResult}
410 \tkzInterLL(eu@mic,eu@mid)(eu@mib,eu@mie)
411 \endpgfinterruptboundingbox
412 \endgroup
413 }
414 \let\tkzLemoinePoint\tkzSymmedianCenter
415 \let\tkzGrebePoint\tkzSymmedianCenter
416 \let\tkzDefLemoinePoint\tkzLemoinePoint
417 %<--------------------------------------------------------------------------–>
418 % Spieker center
419 %<--------------------------------------------------------------------------–>
420 \def\tkzSpiekerCenter(#1,#2,#3){%
421 \begingroup
422 % we need to get the midpoints
423 \pgfcoordinate{tkz@m3}{%
424 \pgfpointscale{0.5}{%
425 \pgfpointadd{\pgfpointanchor{#1}{center}}%
426 {\pgfpointanchor{#2}{center}}}}%
427 \pgfcoordinate{tkz@m2}{%
428 \pgfpointscale{0.5}{%
429 \pgfpointadd{\pgfpointanchor{#1}{center}}%
430 {\pgfpointanchor{#3}{center}}}}%
431 \pgfcoordinate{tkz@m1}{%
432 \pgfpointscale{0.5}{%
433 \pgfpointadd{\pgfpointanchor{#2}{center}}%
434 {\pgfpointanchor{#3}{center}}}}%
435 \tkzInCenter(tkz@m1,tkz@m2,tkz@m3)
436 \endgroup
437 }
438 \let\tkzDefSpiekerCenter\tkzSpiekerCenter
439 %<--------------------------------------------------------------------------–>
440 % Gergonne center Ge
441 %<--------------------------------------------------------------------------–>
442 \def\tkzGergonneCenter(#1,#2,#3){%
443 \begingroup
444 \pgfinterruptboundingbox
445 \tkzInCenter(#1,#2,#3)
446 \pgfnodealias{tkz@ptin}{tkzPointResult}
447 \tkzUProjection(#2,#3)(tkz@ptin)
448 \pgfnodealias{tkz@oca}{tkzPointResult}
449 \tkzUProjection(#1,#3)(tkz@ptin)
450 \pgfnodealias{tkz@ocb}{tkzPointResult}
451 \tkzInterLL(#1,tkz@oca)(#2,tkz@ocb)
452 \endpgfinterruptboundingbox
453 \endgroup
454 }
455 \let\tkzDefGergonneCenter\tkzGergonneCenter
456 %<--------------------------------------------------------------------------–>
457 % Nagel center Na
458 %<--------------------------------------------------------------------------–>
459 % INa = 3 IG. Nagel point % correction 02/02/20
460 \def\tkzNagelCenter(#1,#2,#3){%
461 \begingroup
462 \pgfinterruptboundingbox
463 \tkzDefExcentralTriangle(#1,#2,#3){tkz@a,tkz@b,tkz@c}
464 \tkzUProjection(#2,#3)(tkz@a)
465 \pgfnodealias{tkz@tgta}{tkzPointResult}
466 \tkzUProjection(#1,#2)(tkz@c)
467 \pgfnodealias{tkz@tgtc}{tkzPointResult}
468 \tkzInterLL(#1,tkz@tgta)(#3,tkz@tgtc)
469 \endpgfinterruptboundingbox
470 \endgroup
471 }
472 \let\tkzDefNagelCenter\tkzNagelCenter
473 %<--------------------------------------------------------------------------–>
474 % Mittenpunkt
475 %<--------------------------------------------------------------------------–>
476 \def\tkzMittenpunktCenter(#1,#2,#3){%
477 \begingroup
478 \pgfinterruptboundingbox
479 \tkzExCenter(#2,#3,#1)
480 \pgfnodealias{tkz@a}{tkzPointResult}
481 \tkzExCenter(#3,#1,#2)
482 \pgfnodealias{tkz@b}{tkzPointResult}
483 \pgfcoordinate{tkz@ma}{%
484 \pgfpointscale{0.5}{%
485 \pgfpointadd{\pgfpointanchor{#1}{center}}{\pgfpointanchor{#2}{center}}}}%
486 \pgfcoordinate{tkz@mb}{%
487 \pgfpointscale{0.5}{%
488 \pgfpointadd{\pgfpointanchor{#2}{center}}{\pgfpointanchor{#3}{center}}}}%
489 \tkzInterLL(tkz@a,tkz@ma)(tkz@b,tkz@mb)
490 \endpgfinterruptboundingbox
491 \endgroup
492 }
493 \let\tkzDefMittenpunktCenter\tkzMittenpunktCenter
494 \let\tkzDefMiddlespoint\tkzMittenpunktCenter
495 %<--------------------------------------------------------------------------–>
496 % Feuerbach point
497 %<--------------------------------------------------------------------------–>
498 \def\tkzFeuerbachCenter(#1,#2,#3){%
499 \begingroup
500 \pgfinterruptboundingbox
501 \tkzEulerCenter(#1,#2,#3)
502 \pgfnodealias{tkz@euler}{tkzPointResult}
503 \tkzInCenter(#1,#2,#3)
504 \pgfnodealias{tkz@in}{tkzPointResult}
505 \tkzUProjection(#2,#3)(tkzPointResult)
506 \tkzInterLC(tkz@in,tkz@euler)(tkz@in,tkzPointResult)\tkzGetFirstPoint{tkz@fe}
507 \tkzRenamePoint(tkz@fe){tkzPointResult}
508 \endpgfinterruptboundingbox
509 \endgroup
510 }
511 \let\tkzDefFeuerbachCenter\tkzFeuerbachCenter
512 %<--------------------------------------------------------------------------–>
513 % Orthogonal center
514 %<--------------------------------------------------------------------------–>
515 \def\tkzOrthogonalCenter(#1,#2){%
516 \begingroup
517 \pgfinterruptboundingbox
518 \tkz@VecK[\tkz@koeff/(1+\tkz@koeff)](#1,#2)
519 \pgfnodealias{tkzFirstPointResult}{tkzPointResult}
520 \tkz@VecK[\tkz@koeff/(\tkz@koeff-1)](#1,#2)
521 \pgfnodealias{tkzSecondPointResult}{tkzPointResult}
522 \tkzDefMidPoint(tkzFirstPointResult,tkzSecondPointResult)
523 \endpgfinterruptboundingbox
524 \endgroup
525 }
526 %<--------------------------------------------------------------------------–>
527 % End Triangle center
528 %<--------------------------------------------------------------------------–>
529 %<--------------------------------------------------------------------------–>
530 % Projection center of excircles
531 %<--------------------------------------------------------------------------–>
532 \def\tkzDefProjExcenter{\pgfutil@ifnextchar[{%
533 \tkz@DefProjExcenter}{%
534 \tkz@DefProjExcenter[]}
535 }
536 \def\tkz@DefProjExcenter[#1](#2,#3,#4)(#5)#6{
537 \begingroup
538 \SetUpPTTR{#1}
539 \foreach \name [count=\i] in {#5} {%
540 \global\expandafter\edef\csname tkz@pt\i\endcsname{\name}
541 }
542 \foreach \name [count=\i] in {#6} {%
543 \global\expandafter\edef\csname tkz@ppt\i\endcsname{\name}
544 }
545 \tkzDefPointBy[projection=onto #3--#4 ](\tkz@pttr@name \csname tkz@pt1\endcsname)
546 \pgfnodealias{\csname tkz@ppt1\endcsname\csname tkz@pt1\endcsname}{tkzPointResult}
547 \tkzDefPointBy[projection=onto #3--#4 ](\tkz@pttr@name \csname tkz@pt2\endcsname)
548 \pgfnodealias{\csname tkz@ppt1\endcsname\csname tkz@pt2\endcsname}{tkzPointResult}
549 \tkzDefPointBy[projection=onto #3--#4 ](\tkz@pttr@name \csname tkz@pt3\endcsname)
550 \pgfnodealias{\csname tkz@ppt1\endcsname\csname tkz@pt3\endcsname}{tkzPointResult}
551 \tkzDefPointBy[projection=onto #2--#4 ](\tkz@pttr@name \csname tkz@pt1\endcsname)
552 \pgfnodealias{\csname tkz@ppt2\endcsname\csname tkz@pt1\endcsname}{tkzPointResult}
553 \tkzDefPointBy[projection=onto #2--#4 ](\tkz@pttr@name \csname tkz@pt2\endcsname)
554 \pgfnodealias{\csname tkz@ppt2\endcsname\csname tkz@pt2\endcsname}{tkzPointResult}
555 \tkzDefPointBy[projection=onto #2--#4 ](\tkz@pttr@name \csname tkz@pt3\endcsname)
556 \pgfnodealias{\csname tkz@ppt2\endcsname\csname tkz@pt3\endcsname}{tkzPointResult}
557 \tkzDefPointBy[projection=onto #3--#2 ](\tkz@pttr@name \csname tkz@pt1\endcsname)
558 \pgfnodealias{\csname tkz@ppt3\endcsname\csname tkz@pt1\endcsname}{tkzPointResult}
559 \tkzDefPointBy[projection=onto #3--#2 ](\tkz@pttr@name \csname tkz@pt2\endcsname)
560 \pgfnodealias{\csname tkz@ppt3\endcsname\csname tkz@pt2\endcsname}{tkzPointResult}
561 \tkzDefPointBy[projection=onto #3--#2 ](\tkz@pttr@name \csname tkz@pt3\endcsname)
562 \pgfnodealias{\csname tkz@ppt3\endcsname\csname tkz@pt3\endcsname}{tkzPointResult}
563 \endgroup
564 }
565 %<--------------------------------------------------------------------------–>
566 % Point on circle
567 %<--------------------------------------------------------------------------–>
568 \def\tkz@numptcirc{0}
569 \pgfkeys{/tkzptcircle/.cd,
570 through/.code args = {center #1 angle #2 point #3} { \def\tkz@center{#1}%
571 \def\tkz@angle{#2}%
572 \def\tkz@through{#3}%
573 \def\tkz@numptcirc{0}},
574 R/.code args = {center #1 angle #2 radius #3} { \def\tkz@center{#1}%
575 \def\tkz@angle{#2}%
576 \def\tkz@radius{#3}%
577 \def\tkz@numptcirc{1}},
578 through in rad/.code args = {center #1 angle #2 point #3} { \def\tkz@center{#1}%
579 \def\tkz@angle{#2}%
580 \def\tkz@through{#3}%
581 \def\tkz@numptcirc{2}},
582 R in rad/.code args = {center #1 angle #2 radius #3} { \def\tkz@center{#1}%
583 \def\tkz@angle{#2}%
584 \def\tkz@radius{#3}%
585 \def\tkz@numptcirc{3}}
586 }
587
588 \def\tkzDefPointOnCircle{\pgfutil@ifnextchar[{\tkz@DefPointOnCircle}{%
589 \tkz@DefPointOnCircle[]}}
590 \def\tkz@DefPointOnCircle[#1]{%
591 \begingroup
592 \pgfqkeys{/tkzptcircle}{#1}
593 \ifcase\tkz@numptcirc%
594 \tkz@@CalcLengthcm(\tkz@center,\tkz@through){tkz@radius}
595 \or% 1
596 \relax%
597 \or% 2
598 \pgfmathparse{\tkz@angle\space r}
599 \let\tkz@angle\pgfmathresult
600 \tkz@@CalcLengthcm(\tkz@center,\tkz@through){tkz@radius}
601 \or% 3
602 \pgfmathparse{\tkz@angle\space r}
603 \let\tkz@angle\pgfmathresult
604 \fi
605 \path (\tkz@center) --++(\tkz@angle:\tkz@radius) coordinate(tkzPointResult);
606 \endgroup
607 }
608 %<--------------------------------------------------------------------------–>
609 % Point on line
610 %<--------------------------------------------------------------------------–>
611 \def\tkzDefPointOnLine{\pgfutil@ifnextchar[{\tkz@DefPointOnLine}{\tkz@DefPointOnLine[]}}
612 \def\tkz@DefPointOnLine[#1](#2,#3){%
613 \begingroup
614 \path (#2) to [#1] coordinate (tkzPointResult) (#3);
615 \endgroup
616 }
617
618 \makeatother
619 \endinput