Debian Codegraph @

texmf-dist/doc/latex/tkz-euclide/TKZdoc-euclide-intersection.tex

raw
1 \section{\tkzname{Intersections}}
2
3 It is possible to determine the coordinates of the points of intersection between two straight lines, a straight line and a circle, and two circles.
4
5 The associated commands have no optional arguments and the user must determine the existence of the intersection points himself.
6
7 \subsection{Intersection of two straight lines \tkzcname{tkzInterLL}}
8 \begin{NewMacroBox}{tkzInterLL}{\parg{$A,B$}\parg{$C,D$}}%
9 Defines the intersection point \tkzname{tkzPointResult} of the two lines $(AB)$ and $(CD)$. The known points are given in pairs (two per line) in brackets, and the resulting point can be retrieved with the macro \tkzcname{tkzDefPoint}.
10 \end{NewMacroBox}
11
12 \subsubsection{Example of intersection between two straight lines}
13
14 \begin{tkzexample}[latex=7cm,small]
15 \begin{tikzpicture}[rotate=-45,scale=.75]
16 \tkzDefPoint(2,1){A}
17 \tkzDefPoint(6,5){B}
18 \tkzDefPoint(3,6){C}
19 \tkzDefPoint(5,2){D}
20 \tkzDrawLines(A,B C,D)
21 \tkzInterLL(A,B)(C,D)
22 \tkzGetPoint{I}
23 \tkzDrawPoints[color=blue](A,B,C,D)
24 \tkzDrawPoint[color=red](I)
25 \end{tikzpicture}
26 \end{tkzexample}
27
28 \subsection{Intersection of a straight line and a circle \tkzcname{tkzInterLC}}
29
30 As before, the line is defined by a couple of points. The circle
31 is also defined by a couple:
32 \begin{itemize}
33 \item $(O,C)$ which is a pair of points, the first is the center and the second is any point on the circle.
34 \item $(O,r)$ The $r$ measure is the radius measure.
35 \end{itemize}
36
37 \begin{NewMacroBox}{tkzInterLC}{\oarg{options}\parg{$A,B$}\parg{$O,C$} or \parg{$O,r$} or \parg{$O,C,D$}}%
38 So the arguments are two couples.
39
40 \medskip
41 \begin{tabular}{lll}%
42 \toprule
43 options & default & definition \\
44 \midrule
45 \TOline{N} {N} {(O,C) determines the circle}
46 \TOline{R} {N} {(O, 1 ) unit 1 cm}
47 \TOline{with nodes}{N} {(O,C,D) CD is a radius}
48 \TOline{common=pt} {} {pt is common point; tkzFirstPoint gives the other point}
49 \TOline{near} {} {tkzFirstPoint is the closest point to the first point of the line}
50 \bottomrule
51 \end{tabular}
52
53 \medskip
54 The macro defines the intersection points $I$ and $J$ of the line $(AB)$ and the center circle $O$ with radius $r$ if they exist; otherwise, an error will be reported in the |.log| file. \tkzname{with nodes} avoids you to calculate the radius which is the length of $[CD]$.
55 If \tkzname{common} and \tkzname{near} are not used then \tkzname{tkzFirstPoint} is the smallest angle (angle with \tkzname{tkzSecondPoint} and the center of the circle).
56 \end{NewMacroBox}
57
58 \begin{NewMacroBox}{tkzTestInterLC}{\parg{$O,A$}\parg{$O',B$}}%
59 So the arguments are two couples which define a line and a circle with a center and a point on the circle. If there is a non empty intersection between these the line and the circle then the test \tkzcname{iftkzFlagLC} gives true.
60 \end{NewMacroBox}
61
62 \subsubsection{test line-circle intersection}
63
64 \begin{tkzexample}[latex=7cm,small]
65 \begin{tikzpicture}[scale=1]
66 \tkzDefPoints{% x y name
67 3 /4 /I,
68 3 /2 /P,
69 0 /2 /La,
70 8 /3 /Lb}
71 \tkzDrawCircle(I,P)
72 \foreach \i in {1,...,3}{%
73 \coordinate (Lb) at (8,\i);
74 \tkzDrawLine(La,Lb)
75 \tkzTestInterLC(La,Lb)(I,P)
76 \iftkzFlagLC
77 \tkzInterLC(La,Lb)(I,P)
78 \tkzGetPoints{a}{b}
79 \tkzDrawPoints(a,b)
80 \fi
81 }
82 \end{tikzpicture}
83 \end{tkzexample}
84
85
86 \subsubsection{Line-circle intersection}
87
88 In the following example, the drawing of the circle uses two points and the intersection of the straight line and the circle uses two pairs of points. We will compare the angles $\widehat{D,E,O}$ and $\widehat{E,D,O}$. These angles are in opposite directions. \tkzname{tkzFirstPoint} is assigned to the point that forms the angle with the smallest measure (counterclockwise direction). The counterclockwide angle $\widehat{D,E,O}$ has a measure equal to $360\circ$ minus the measure of $\widehat{O,E,D}$.
89
90 \begin{tkzexample}[latex=7cm,small]
91 \begin{tikzpicture}[scale=.75]
92 \tkzInit[xmax=5,ymax=4]
93 \tkzDefPoint(1,1){O}
94 \tkzDefPoint(-2,4){La}
95 \tkzDefPoint(5,0){Lb}
96 \tkzDefPoint(3,3){C}
97 \tkzInterLC(La,Lb)(O,C) \tkzGetPoints{D}{E}
98 \tkzMarkAngle[->,size=1.5](E,D,O)
99 \tkzDrawPolygons[new](O,D,E)
100 \tkzMarkAngle[->,size=1.5](D,E,O)
101 \tkzDrawCircle(O,C)
102 \tkzDrawPoints[color=teal](O,La,Lb,C)
103 \tkzDrawPoints[color=red](D,E)
104 \tkzDrawLine(La,Lb)
105 \tkzLabelPoints[above right](O,La,Lb,C,D,E)
106 \end{tikzpicture}
107 \end{tkzexample}
108
109 \subsubsection{Line passing through the center option \tkzname{common}}
110 This case is special. You cannot compare the angles. In this case, the option \tkzname{near} must be used. \tkzname{tkzFirstPoint} is assigned to the point closest to the first point given for the line. Here we want $A$ to be closest to $Lb$.
111
112 \begin{tkzexample}[latex=8cm,small]
113 \begin{tikzpicture}
114 \tkzDefPoints{% x y name
115 0 /1 /D,
116 6 /0 /B,
117 3 /3 /O,
118 2 /2 /La,
119 5 /5 /Lb}
120 \tkzDrawCircle(O,D)
121 \tkzDrawLine(La,Lb)
122 \tkzInterLC[near](Lb,La)(O,D)
123 \tkzGetFirstPoint{A}
124 \tkzDrawSegments(O,A)
125 \tkzDrawPoints(O,D,A,La,Lb)
126 \tkzLabelPoints(O,D,A,La,Lb)
127 \end{tikzpicture}
128 \end{tkzexample}
129
130 \subsubsection{Line-circle intersection with option \tkzname{common}}
131 A special case that we often meet, a point of the line is on the circle and we are looking for the other common point.
132 \begin{tkzexample}[latex=7cm,small]
133 \begin{tikzpicture}[scale=.5]
134 \tkzDefPoints{0/0/O,-5/0/A,2/-2/B,0/5/D}
135 \tkzInterLC[common=A](B,A)(O,D)
136 \tkzGetFirstPoint{C}
137 \tkzDrawPoints(O,A,B)
138 \tkzDrawCircle(O,A)
139 \tkzDrawLine(A,C)
140 \tkzDrawPoint(C)
141 \tkzLabelPoints(A,B,C)
142 \end{tikzpicture}
143 \end{tkzexample}
144
145
146 \subsubsection{Line-circle intersection order of points}
147 The idea is to compare the angles formed with the first defining point of the line, a resultant point and the center of the circle. The first point is the one that corresponds to the smallest angle.
148
149 As you can see $\widehat{BCO} < \widehat{BEO} $. To tell the truth,$ \widehat{BEO}$ is counterclockwise.
150
151 \begin{tkzexample}[latex=6cm,small]
152 \begin{tikzpicture}[scale=.5]
153 \tkzDefPoints{0/0/O,5/1/A,2/2/B,3/1/D}
154 \tkzInterLC[common=A](B,D)(O,A) \tkzGetPoints{C}{E}
155 \tkzDrawPoints(O,A,B,D)
156 \tkzDrawCircle(O,A) \tkzDrawLine(E,C)
157 \tkzDrawSegments[dashed](B,O O,C)
158 \tkzMarkAngle[->,size=1.5](B,C,O)
159 \tkzDrawSegments[dashed](O,E)
160 \tkzMarkAngle[->,size=1.5](B,E,O)
161 \tkzDrawPoints(C,E)
162 \tkzLabelPoints[above](O,E)
163 \tkzLabelPoints[right](A,B,C,D)
164 \end{tikzpicture}
165 \end{tkzexample}
166
167 \subsubsection{Example with \tkzcname{foreach}}
168 \begin{tkzexample}[latex=7cm,small]
169 \begin{tikzpicture}[scale=3,rotate=180]
170 \tkzDefPoint(0,1){J}
171 \tkzDefPoint(0,0){O}
172 \foreach \i in {0,-5,-10,...,-90}{
173 \tkzDefPoint({2.5*cos(\i*pi/180)},%
174 {1+2.5*sin(\i*pi/180)}){P}
175 \tkzInterLC[R](P,J)(O,1)\tkzGetPoints{N}{M}
176 \tkzDrawSegment[color=orange](J,N)
177 \tkzDrawPoints[red](N)}
178 \foreach \i in {-90,-95,...,-175,-180}{
179 \tkzDefPoint({2.5*cos(\i*pi/180)},%
180 {1+2.5*sin(\i*pi/180)}){P}
181 \tkzInterLC[R](P,J)(O,1)\tkzGetPoints{N}{M}
182 \tkzDrawSegment[color=orange](J,M)
183 \tkzDrawPoints[red](M)}
184 \end{tikzpicture}
185 \end{tkzexample}
186
187 \subsubsection{Line-circle intersection with option \tkzname{near}}
188 $D$ is the point closest to $b$.
189
190 \begin{tkzexample}[vbox,small]
191 \begin{tikzpicture}
192 \tkzDefPoints{0/0/A,12/0/C}
193 \tkzDefGoldenRatio(A,C) \tkzGetPoint{B}
194 \tkzDefMidPoint(A,C) \tkzGetPoint{O}
195 \tkzDefMidPoint(A,B) \tkzGetPoint{O_1}
196 \tkzDefMidPoint(B,C) \tkzGetPoint{O_2}
197 \tkzDefPointBy[rotation=center O_2 angle 90](C) \tkzGetPoint{P}
198 \tkzDefPointBy[rotation=center O_1 angle 90](B) \tkzGetPoint{Q}
199 \tkzDefPointBy[rotation=center B angle 90](C) \tkzGetPoint{b}
200 \tkzInterLC[near](b,B)(O,A) \tkzGetFirstPoint{D}
201 \tkzInterCC(D,B)(O,C) \tkzGetPoints{V}{U}
202 \tkzDefPointBy[projection=onto U--V](O_1) \tkzGetPoint{M}
203 \tkzDefPointBy[projection=onto U--V](O_2) \tkzGetPoint{N}
204 \tkzDrawPoints(A,B,C,O,O_1,O_2,D,U,V,M,N,b)
205 \tkzDrawSemiCircles[teal](O,C O_1,B O_2,C)
206 \tkzDrawSegments(A,C B,D U,V A,D C,D M,B B,N)
207 \tkzDrawArc(D,U)(V)
208 \tkzLabelPoints(A,B,C,O,O_1,O_2)
209 \tkzLabelPoints[above](D,U,V,M,N)
210 \end{tikzpicture}
211 \end{tkzexample}
212
213
214 \subsubsection{More complex example of a line-circle intersection}
215 Figure from \url{http://gogeometry.com/problem/p190_tangent_circle}
216
217 \begin{tkzexample}[latex=6.5cm,small]
218 \begin{tikzpicture}[scale=.75]
219 \tkzDefPoint(0,0){A}
220 \tkzDefPoint(8,0){B}
221 \tkzDefMidPoint(A,B) \tkzGetPoint{O}
222 \tkzDefMidPoint(O,B) \tkzGetPoint{O'}
223 \tkzDefLine[tangent from=A](O',B)\tkzGetFirstPoint{E}
224 \tkzInterLC(A,E)(O,B) \tkzGetFirstPoint{D}
225 \tkzDefPointBy[projection=onto A--B](D)
226 \tkzGetPoint{F}
227 \tkzDrawCircles(O,B O',B)
228 \tkzDrawSegments(A,D A,B D,F)
229 \tkzDrawSegments[color=red,line width=1pt,
230 opacity=.4](A,O F,B)
231 \tkzDrawPoints(A,B,O,O',E,D)
232 \tkzMarkRightAngle(D,F,B)
233 \tkzLabelPoints[below right](A,B,O,O',E,D)
234 \end{tikzpicture}
235 \end{tkzexample}
236
237 \subsubsection{Circle defined by a center and a measure, and special cases}
238 Let's look at some special cases like straight lines tangent to the circle.
239
240 \begin{tkzexample}[latex=7cm,small]
241 \begin{tikzpicture}[scale=.5]
242 \tkzDefPoint(0,8){A} \tkzDefPoint(8,0){B}
243 \tkzDefPoint(8,8){C} \tkzDefPoint(4,4){D}
244 \tkzDefPoint(2,4){E} \tkzDefPoint(4,2){F}
245 \tkzDefPoint(8,4){G}
246 \tkzInterLC(A,C)(D,G) \tkzGetPoints{I1}{I2}
247 \tkzInterLC(B,C)(D,G) \tkzGetPoints{J1}{J2}
248 \tkzInterLC[near](A,B)(D,G) \tkzGetPoints{K1}{K2}
249 \tkzInterLC(E,F)(D,G) \tkzGetPoints{E1}{E2}
250 \tkzDrawCircle(D,G)
251 \tkzDrawPoints[color=red](I1,J1,K1,K2,E1,E2)
252 \tkzDrawLines(A,B B,C A,C I2,J2 E1,E2)
253 \tkzDrawPoints[color=blue](A,...,F)
254 \tkzDrawPoints[color=red](I2,J2)
255 \tkzLabelPoints[left](B,D,E,F)
256 \tkzLabelPoints[below left](A,C)
257 \tkzLabelPoints[below=4pt](I1,K1,K2,E2)
258 \tkzLabelPoints[left](J1,E1)
259 \end{tikzpicture}
260
261 \end{tkzexample}
262
263 \subsubsection{Calculation of radius}
264 With \tkzname{pgfmath} and \tkzcname{pgfmathsetmacro}
265
266 The radius measurement may be the result of a calculation that is not done within the intersection macro, but before.
267 A length can be calculated in several ways. It is possible of course,
268 to use the module \tkzname{pgfmath} and the macro \tkzcname{pgfmathsetmacro}. In some cases, the results obtained are not precise enough, so the following calculation $0.0002 \div 0.0001$ gives $1.98$ with pgfmath while xfp will give $2$.
269
270 With \tkzname{xfp} and \tkzcname{fpeval}:
271
272 \begin{tkzexample}[latex=7cm,small]
273 \begin{tikzpicture}
274 \tkzDefPoint(2,2){A}
275 \tkzDefPoint(5,4){B}
276 \tkzDefPoint(4,4){O}
277 \pgfmathsetmacro\tkzLen{\fpeval{0.0002/0.0001}}
278 % or \edef\tkzLen{\fpeval{0.0002/0.0001}}
279 \tkzInterLC[R](A,B)(O, \tkzLen)
280 \tkzGetPoints{I}{J}
281 \tkzDrawCircle(O,I)
282 \tkzDrawPoints[color=blue](A,B)
283 \tkzDrawPoints[color=red](I,J)
284 \tkzDrawLine(I,J)
285 \end{tikzpicture}
286 \end{tkzexample}
287
288
289 \subsubsection{Option \code{with nodes}}
290 \begin{tkzexample}[latex=8cm,small]
291 \begin{tikzpicture}[scale=.75]
292 \tkzDefPoints{0/0/A,4/0/B,1/1/D,2/0/E}
293 \tkzDefTriangle[equilateral](A,B)
294 \tkzGetPoint{C}
295 \tkzInterLC[with nodes](D,E)(C,A,B)
296 \tkzGetPoints{F}{G}
297 \tkzDrawCircle(C,A)
298 \tkzDrawPolygon(A,B,C)
299 \tkzDrawPoints(A,...,G)
300 \tkzDrawLine(F,G)
301 \end{tikzpicture}
302 \end{tkzexample}
303
304 \subsection{Intersection of two circles \tkzcname{tkzInterCC}}
305
306 The most frequent case is that of two circles defined by their center and a point, but as before the option \tkzname{R} allows to use the radius measurements.
307
308 \begin{NewMacroBox}{tkzInterCC}{\oarg{options}\parg{$O,A$}\parg{$O',A'$} or \parg{$O,r$}\parg{$O',r'$} or \parg{$O,A,B$} \parg{$O',C,D$}}%
309 \begin{tabular}{lll}%
310 options & default & definition \\
311 \midrule
312 \TOline{N} {N} {$OA$ and $O'A'$ are radii, $O$ and $O'$ are the centers.}
313 \TOline{R} {N} {$r$ and $r'$ are dimensions and measure the radii.}
314 \TOline{with nodes} {N} {in (A,A,C)(C,B,F) AC and BF give the radii. }
315 \TOline{common=pt} {} {pt is common point; tkzFirstPoint gives the other point.}
316 \bottomrule
317 \end{tabular}
318
319 \medskip
320 This macro defines the intersection point(s) $I$ and $J$ of the two center circles $O$ and $O'$. If the two circles do not have a common point then the macro ends with an error that is not handled. If the centers are $O$ and $O'$ and the intersections are $A$ and $B$ then the angles $\widehat{O,A,O'}$ and $\widehat{O,B,O'}$ are in opposite directions. \tkzname{tkzFirstPoint} is assigned to the point that forms the \code{clockwise} angle.
321 \end{NewMacroBox}
322
323 \begin{NewMacroBox}{tkzTestInterCC}{\parg{$O,A$}\parg{$O',B$}}%
324 So the arguments are two couples which define two circles with a center and a point on the circle. If there is a non empty intersection between these two circles then the test \tkzcname{iftkzFlagCC} gives true.
325 \end{NewMacroBox}
326
327 \subsubsection{test circle-circle intersection}
328
329 \begin{tkzexample}[latex=7cm,small]
330 \begin{tikzpicture}[scale=.75]
331 \tkzDefPoints{% x y name
332 0 /0 /A,
333 2 /0 /B,
334 4 /0 /I,
335 1 /0 /P}
336 \tkzDrawCircle(A,B)
337 \foreach \i in {1,...,3}{%
338 \coordinate (P) at (\i,0);
339 \tkzDrawCircle[new](I,P)
340 \tkzTestInterCC(A,B)(I,P)
341 \iftkzFlagCC
342 \tkzInterCC(A,B)(I,P) \tkzGetPoints{a}{b}
343 \tkzDrawPoints(a,b)
344 \fi}
345 \end{tikzpicture}
346 \end{tkzexample}
347
348 \subsubsection{circle-circle intersection with \tkzname{common} point.}
349
350 \begin{tkzexample}[latex=7cm,small]
351 \begin{tikzpicture}[scale=.5]
352 \tkzDefPoints{0/0/O,5/-1/A,2/2/B}
353 \tkzDrawPoints(O,A,B)
354 \tkzDrawCircles(O,B A,B)
355 \tkzInterCC[common=B](O,B)(A,B)
356 \tkzGetFirstPoint{C}
357 \tkzDrawPoint(C)
358 \tkzLabelPoints[above](O,A,B,C)
359 \end{tikzpicture}
360 \end{tkzexample}
361
362 \subsubsection{circle-circle intersection order of points.}
363 The idea is to compare the angles formed with the first center, a resultant point and the center of the second circle. The first point is the one that corresponds to the smallest angle.
364
365 As you can see $\widehat{ODB} < \widehat{OBE} $
366
367 \begin{tkzexample}[latex=6cm,small]
368 \begin{tikzpicture}[scale=.5]
369 \pgfkeys{/pgf/number format/.cd,fixed relative,
370 precision=4}
371 \tkzDefPoints{0/0/O,5/-1/A,2/2/B,2/-1/C}
372 \tkzDrawPoints(O,A,B)
373 \tkzDrawCircles(O,A B,C)
374 \tkzInterCC(O,A)(B,C)\tkzGetPoints{D}{E}
375 \tkzDrawPoints(C,D,E)
376 \tkzLabelPoints(O,A,B,C)
377 \tkzLabelPoints[above](D,E)
378 \tkzDrawSegments[cyan](D,O D,B)
379 \tkzMarkAngle[red,->,size=1.5](O,D,B)
380 \tkzFindAngle(O,D,B) \tkzGetAngle{an}
381 \tkzLabelAngle(O,D,B){$ \pgfmathprintnumber{\an}$}
382 \tkzDrawSegments[cyan](E,O E,B)
383 \tkzMarkAngle[red,->,size=1.5](O,E,B)
384 \tkzFindAngle(O,E,B) \tkzGetAngle{an}
385 \tkzLabelAngle(O,E,B){$ \pgfmathprintnumber{\an}$}
386 \end{tikzpicture}
387 \end{tkzexample}
388
389 \subsubsection{Construction of an equilateral triangle.}
390 $\widehat{A,C,B}$ is a clockwise angle
391 \begin{tkzexample}[latex=7cm,small]
392 \begin{tikzpicture}[trim left=-1cm,scale=.5]
393 \tkzDefPoint(1,1){A}
394 \tkzDefPoint(5,1){B}
395 \tkzInterCC(A,B)(B,A)\tkzGetPoints{C}{D}
396 \tkzDrawPoint[color=black](C)
397 \tkzDrawCircles(A,B B,A)
398 \tkzCompass[color=red](A,C)
399 \tkzCompass[color=red](B,C)
400 \tkzDrawPolygon(A,B,C)
401 \tkzMarkSegments[mark=s|](A,C B,C)
402 \tkzLabelPoints[](A,B)
403 \tkzLabelPoint[above](C){$C$}
404 \end{tikzpicture}
405 \end{tkzexample}
406
407
408 \subsubsection{Segment trisection}
409 The idea here is to divide a segment with a ruler and a compass into three segments of equal length.
410
411 \begin{tkzexample}[latex=7cm,small]
412 \begin{tikzpicture}[scale=.6]
413 \tkzDefPoint(0,0){A}
414 \tkzDefPoint(3,2){B}
415 \tkzInterCC(A,B)(B,A) \tkzGetSecondPoint{D}
416 \tkzInterCC(D,B)(B,A) \tkzGetPoints{A}{C}
417 \tkzInterCC(D,B)(A,B) \tkzGetPoints{E}{B}
418 \tkzInterLC[common=D](C,D)(E,D)\tkzGetFirstPoint{F}
419 \tkzInterLL(A,F)(B,C) \tkzGetPoint{O}
420 \tkzInterLL(O,D)(A,B) \tkzGetPoint{H}
421 \tkzInterLL(O,E)(A,B) \tkzGetPoint{G}
422 \tkzDrawCircles(D,E A,B B,A E,A)
423 \tkzDrawSegments[](O,F O,B O,D O,E)
424 \tkzDrawPoints(A,...,H)
425 \tkzDrawSegments(A,B B,D A,D A,E E,F C,F B,C)
426 \tkzMarkSegments[mark=s|](A,G G,H H,B)
427 \end{tikzpicture}
428 \end{tkzexample}
429
430 \subsubsection{With the option \code{with nodes}}
431 \begin{tkzexample}[latex=6cm,small]
432 \begin{tikzpicture}[scale=.5]
433 \tkzDefPoints{0/0/A,0/5/B,5/0/C}
434 \tkzDefPoint(54:5){F}
435 \tkzInterCC[with nodes](A,A,C)(C,B,F)
436 \tkzGetPoints{a}{e}
437 \tkzInterCC(A,C)(a,e) \tkzGetFirstPoint{b}
438 \tkzInterCC(A,C)(b,a) \tkzGetFirstPoint{c}
439 \tkzInterCC(A,C)(c,b) \tkzGetFirstPoint{d}
440 \tkzDrawCircle[new](A,C)
441 \tkzDrawPoints(a,b,c,d,e)
442 \tkzDrawPolygon(a,b,c,d,e)
443 \foreach \vertex/\num in {a/36,b/108,c/180,
444 d/252,e/324}{%
445 \tkzDrawPoint(\vertex)
446 \tkzLabelPoint[label=\num:$\vertex$](\vertex){}
447 \tkzDrawSegment(A,\vertex)
448 }
449 \end{tikzpicture}
450 \end{tkzexample}
451
452 \subsubsection{Mix of intersections}
453 \begin{tkzexample}[latex=8cm,small]
454 \begin{tikzpicture}[scale = .7]
455 \tkzDefPoint(2,2){A}
456 \tkzDefPoint(0,0){B}
457 \tkzDefPoint(-2,2){C}
458 \tkzDefPoint(0,4){D}
459 \tkzDefPoint(4,2){E}
460 \tkzCircumCenter(A,B,C)\tkzGetPoint{O}
461 \tkzInterCC[R](O,2)(D,2)\tkzGetPoints{M1}{M2}
462 \tkzInterCC(O,A)(D,O) \tkzGetPoints{1}{2}
463 \tkzInterLC(A,E)(B,M1)\tkzGetSecondPoint{M3}
464 \tkzInterLC(O,C)(M3,D)\tkzGetSecondPoint{L}
465 \tkzDrawSegments(C,L)
466 \tkzDrawPoints(A,B,C,D,E,M1,M2,M3,O,L)
467 \tkzDrawSegments(O,E)
468 \tkzDrawSegments[new](C,A D,B)
469 \tkzDrawPoint(O)
470 \tkzDrawCircles[new](M3,D B,M2 D,O)
471 \tkzDrawCircle(O,A)
472 \tkzLabelPoints[below right](A,B,C,D,E,M1,M2,M3,O,L)
473 \end{tikzpicture}
474 \end{tkzexample}
475
476
477 \subsubsection{Altshiller-Court's theorem}
478 The two lines joining the points of intersection of two orthogonal circles to a point on one of the circles met the other circle in two diametricaly oposite points. Altshiller p 176
479
480
481 \begin{tkzexample}[vbox,small]
482 \begin{tikzpicture}
483 \tkzDefPoints{0/0/P,5/0/Q,3/2/I}
484 \tkzDefCircle[orthogonal from=P](Q,I)
485 \tkzGetFirstPoint{E}
486 \tkzDrawCircles(P,E Q,E)
487 \tkzInterCC[common=E](P,E)(Q,E) \tkzGetFirstPoint{F}
488 \tkzDefPointOnCircle[through = center P angle 80 point E]
489 \tkzGetPoint{A}
490 \tkzInterLC[common=E](A,E)(Q,E) \tkzGetFirstPoint{C}
491 \tkzInterLL(A,F)(C,Q) \tkzGetPoint{D}
492 \tkzDrawLines[add=0 and 1](P,Q)
493 \tkzDrawLines[add=0 and 2](A,E)
494 \tkzDrawSegments(P,E E,F F,C A,F C,D)
495 \tkzDrawPoints(P,Q,E,F,A,C,D)
496 \tkzLabelPoints(P,Q,F)
497 \tkzLabelPoints[above](E,A)
498 \tkzLabelPoints[left](D)
499 \tkzLabelPoints[above right](C)
500 \end{tikzpicture}
501 \end{tkzexample}
502
503
504 \endinput