Debian Codegraph @

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

raw
1 \newpage
2 \section{Intersections}
3 \label{sec:intersections}
4
5 The \tkzFct{tkz-elements}{intersection} function is an essential geometric tool. It computes the intersection of two geometric objects, which may belong to the following classes:
6
7 \begin{itemize}
8 \item \tkzClass{line} with \tkzClass{line},
9 \item \tkzClass{line} with \tkzClass{circle},
10 \item \tkzClass{circle} with \tkzClass{circle},
11 \item \tkzClass{line} with \tkzClass{conic}.
12 \end{itemize}
13
14 Note that \tkzClass{circle} is a distinct class from \tkzClass{conic}.
15 The \code{conic} class includes parabolas, hyperbolas, and ellipses.
16
17 \medskip
18
19 The function takes a pair of objects as arguments, regardless of order.
20 The result typically consists of one or two points, depending on the geometric configuration.
21 If there is no intersection, the function may return \code{false} or \code{\_}, depending on the context.
22
23 \medskip
24
25 When two intersection points exist and you either:
26 \begin{itemize}
27 \item already know one of them, or
28 \item want to select the one closest to a reference point,
29 \end{itemize}
30 you may use optional keys in the \code{opts} table.
31
32 In addition, numerical robustness can be controlled through an optional tolerance parameter \code{eps}, also stored in \code{opts}.
33
34 \subsection{Optional arguments: \code{known}, \code{near}, and \code{EPS}}
35
36 The function \tkzFct{tkz-elements}{intersection(X, Y, opts)} computes the intersection between two geometric objects \code{X} and \code{Y}.
37 The optional table \code{opts} may contain the following keys:
38
39 \begin{itemize}
40 \item \tkzKey{known} \tkzOptArg{point} \\
41 This option is used when one of the two intersection points is already known.
42 The function will return the \emph{other} solution as the first value.
43 This is particularly useful in constructions where one intersection is already defined:
44
45 \begin{mybox}
46 \begin{verbatim}
47 z.X, z.Y = intersection(C1, C2, {known = z.Y})
48 \end{verbatim}
49 \end{mybox}
50
51 If \code{z.Y} is one of the intersection points, the function ensures that \code{z.X} receives the other.
52
53 \item \tkzKey{near} \tkzOptArg{point} \\
54 With this option, the function returns first the solution closest to the given reference point:
55
56 \begin{mybox}
57 \begin{verbatim}
58 z.A, z.B = intersection(C1, L, {near = z.O})
59 \end{verbatim}
60 \end{mybox}
61
62 Here, \code{z.A} will be the intersection point closest to \code{z.O}.
63
64 \item \tkzKey{EPS} \tkzOptArg{number} \\
65 This optional key sets the numerical tolerance used internally when determining
66 whether objects intersect, touch, or are tangential.
67 If omitted, the global value \code{tkz.epsilon} is used:
68
69 \begin{mybox}
70 \begin{verbatim}
71 z.A, z.B = intersection(C1, C2, {eps = 1e-6})
72 \end{verbatim}
73 \end{mybox}
74
75 This option improves robustness in configurations involving near-tangency or
76 small numerical uncertainties.
77
78 \end{itemize}
79
80 If none of these options is supplied, the intersection points are returned in the default order determined by the geometric computation, and the global tolerance \code{tkz.epsilon} is used.
81
82 \medskip
83
84 \texttt{Note: } These options only affect cases where the intersection returns multiple points.
85 For single-point intersections (e.g., tangency), the result is unaffected.
86 The \code{eps} option however always controls the numerical tolerance used internally.
87
88 \medskip
89 \texttt{Compatibility note: }
90 For convenience and backward compatibility, the third argument of
91 \code{intersection} may also be a numerical tolerance:
92 \begin{mybox}
93 \begin{verbatim}
94 z.A, z.B = intersection(C1, C2, 1e-5)
95 \end{verbatim}
96 \end{mybox}
97 In this case, the number is interpreted as the value of \code{eps},
98 and no other option is provided.
99 The recommended modern form is:
100 \begin{mybox}
101 \begin{verbatim}
102 z.A, z.B = intersection(C1, C2, {eps = 1e-5})
103 \end{verbatim}
104 \end{mybox}
105
106
107
108
109 \subsection{Line-line}
110 \label{sub:line_line}
111
112 The result is of the form: |point| or |false|.
113
114 \begin{minipage}{0.6\textwidth}
115 \begin{verbatim}
116 \directlua{
117 init_elements()
118 z.A = point(1, -1)
119 z.B = point(4, 1)
120 z.C = point(2, 1)
121 z.D = point(4, -2)
122 z.I = point(0, 0)
123 L.AB = line(z.A, z.B)
124 L.CD = line(z.C, z.D)
125 x = intersection(L.AB, L.CD)
126 if x == false then
127 tex.print("error")
128 else
129 z.I = x
130 end}
131
132 \begin{tikzpicture}
133 \tkzGetNodes
134 \tkzDrawSegments(A,B C,D)
135 \tkzDrawPoints(A,B,C,D,I)
136 \tkzLabelPoints(A,B,C,D,I)
137 \end{tikzpicture}
138 \end{verbatim}
139 \end{minipage}
140 \begin{minipage}{0.4\textwidth}
141 \directlua{
142 init_elements()
143 z.A = point(1, -1)
144 z.B = point(4, 1)
145 z.C = point(2, 1)
146 z.D = point(4, -2)
147 z.I = point(0, 0)
148 L.AB = line(z.A, z.B)
149 L.CD = line(z.C, z.D)
150 x = intersection(L.AB, L.CD)
151 if x == false then
152 tex.print("error")
153 else
154 z.I = x
155 end}
156
157 \begin{tikzpicture}[scale = 2]
158 \tkzGetNodes
159 \tkzDrawSegments(A,B C,D)
160 \tkzDrawPoints(A,B,C,D,I)
161 \tkzLabelPoints(A,B,C,D,I)
162 \end{tikzpicture}
163 \end{minipage}
164
165 \newpage
166
167 \subsection{Line-circle}
168
169 The result is of the form: |point,point| or |false,false|. If the line is tangent to the circle, then the two points are identical. You can ignore one of the points by using the underscore: |_, point| or |point, _|. When the intersection yields two solutions, the order of the points is determined by the argument of |(z.p - z.c)| with |c| center of the circle and |p| point of intersection. The first solution corresponds to the smallest argument (arguments are between 0 and $2\pi$).
170
171 \begin{minipage}{0.6\textwidth}
172 \begin{verbatim}
173 \directlua{
174 init_elements()
175 z.A = point(1, -1)
176 z.B = point(1, 2)
177 L.AB = line(z.A, z.B)
178 z.O = point(2, 1)
179 z.D = point(3, 1)
180 z.E = point(3, 2)
181 L.AE = line(z.A, z.E)
182 C.OD = circle(z.O, z.D)
183 z.I, _ = intersection(L.AB, C.OD)
184 _, z.K = intersection(C.OD, L.AE)}
185
186 \begin{tikzpicture}
187 \tkzGetNodes
188 \tkzDrawLines(A,B A,E)
189 \tkzDrawCircle(O,D)
190 \tkzDrawPoints(A,B,O,D,I,K)
191 \tkzLabelPoints[left](A,B,O,D,I,K)
192 \end{tikzpicture}
193 \end{verbatim}
194 \end{minipage}
195 \begin{minipage}{0.4\textwidth}
196 \directlua{
197 init_elements()
198 z.A = point(1, -1)
199 z.B = point(1, 2)
200 L.AB = line(z.A, z.B)
201 z.O = point(2, 1)
202 z.D = point(3, 1)
203 z.E = point(3, 2)
204 L.AE = line(z.A, z.E)
205 C.OD = circle(z.O, z.D)
206 z.I, _ = intersection(L.AB, C.OD)
207 _, z.K = intersection(C.OD, L.AE)}
208
209 \begin{tikzpicture}[ scale = 2]
210 \tkzGetNodes
211 \tkzDrawLines[add=.1 and .1](A,B A,E)
212 \tkzDrawCircle(O,D)
213 \tkzDrawPoints(A,B,O,D,I,K)
214 \tkzLabelPoints[left](A,B,O,D,I,K)
215 \end{tikzpicture}
216 \hfill
217 \end{minipage}
218
219 \newpage
220
221 \subsection{Circle-circle}
222
223 The result is of the form: |point,point| or |false,false|. If the circles are tangent, then the two points are identical. You can ignore one of the points by using the underscore: |_ , point| or |point , _|. As for the intersection of a line and a circle, consider the argument of |z.p-z.c| with |c| center of the first circle and |p| point of intersection. The first solution corresponds to the smallest argument (arguments are between 0 and $2\pi$).
224
225 \begin{minipage}{0.5\textwidth}
226 \begin{verbatim}
227 \directlua{
228 init_elements()
229 z.A = point(1, 1)
230 z.B = point(2, 2)
231 z.C = point(3, 3)
232 z.D = point(3, 0)
233 C.AB = circle(z.A, z.B)
234 C.CB = circle(z.C, z.B)
235 z.I, _ = intersection(C.AB, C.CB)
236 C.DC = circle(z.D, z.C)
237 z.J, z.K = intersection(C.DC, C.CB)}
238 \begin{tikzpicture}
239 \tkzGetNodes
240 \tkzDrawCircles(A,B C,B D,C)
241 \tkzDrawPoints(A,I,C,D,J,K)
242 \tkzLabelPoints(A,I,C,D,J,K)
243 \end{tikzpicture}
244 \end{verbatim}
245 \end{minipage}
246 \begin{minipage}{0.5\textwidth}
247 \directlua{
248 init_elements()
249 z.A = point(1, 1)
250 z.B = point(2, 2)
251 z.C = point(3, 3)
252 z.D = point(3, 0)
253 C.AB = circle(z.A, z.B)
254 C.CB = circle(z.C, z.B)
255 z.I, _ = intersection(C.AB, C.CB)
256 C.DC = circle(z.D, z.C)
257 z.J, z.K = intersection(C.DC, C.CB)}
258
259 \begin{tikzpicture}
260 \tkzGetNodes
261 \tkzDrawCircles(A,B C,B D,C)
262 \tkzDrawPoints(A,I,C,D,J,K)
263 \tkzLabelPoints(A,I,C,D,J,K)
264 \end{tikzpicture}
265 \end{minipage}
266
267 Other example: \ref{sub:the_figure_pappus_circle}
268 \newpage
269
270 \subsection{Line-conic}
271 \label{sub:line_conic}
272 The following example is complex, but it shows the possibilities of Lua.
273 The designation of intersection points is a little more complicated than the previous one, as the argument characterizing the major axis must be taken into account. The principle is the same, but this argument must be subtracted. In concrete terms, you need to consider the slopes of the lines formed by the center of the ellipse and the points of intersection, and the slope of the major axis.
274 \vspace{1em}
275
276 \begin{minipage}{0.5\textwidth}
277 \begin{verbatim}
278 \directlua{
279 init_elements()
280 z.a = point(5, 2)
281 z.b = point(-4, 0)
282 L.ab = line(z.a, z.b)
283 z.c = L.ab.mid
284 z.v = L.ab:point(-0.2)
285 local a = tkz.length(z.c, z.v)
286 local c = 0.5 * tkz.length(z.a, z.b)
287 local e = c / a
288 z.K = L.ab:report(a ^ 2 / c, z.c)
289 z.Kp = (z.K - z.a):orthogonal(2):at(z.K)
290 L.dir = line(z.K, z.Kp)
291 CO.EL = conic(z.b, L.dir, e)
292 PA.EL = CO.EL:points(0, 1, 50)
293 z.m = point(2, 4)
294 z.n = point(4, 4)
295 L.mn = line(z.m, z.n)
296 z.r, z.s = intersection(CO.EL, L.mn)}
297 \end{verbatim}
298 \end{minipage}
299 \begin{minipage}{0.5\textwidth}
300 \directlua{
301 init_elements()
302 z.a = point(5, 2)
303 z.b = point(-4, 0)
304 L.ab = line(z.a, z.b)
305 z.c = L.ab.mid
306 z.v = L.ab:point(-0.2)
307 local a = tkz.length(z.c, z.v)
308 local c = 0.5 * tkz.length(z.a, z.b)
309 local e = c / a
310 z.K = L.ab:report(a ^ 2 / c, z.c)
311 z.Kp = (z.K - z.a):orthogonal(2):at(z.K)
312 L.dir = line(z.K, z.Kp)
313 CO.EL = conic(z.b, L.dir, e)
314 PA.EL = CO.EL:points(0, 1, 50)
315 z.m = point(2, 4)
316 z.n = point(4, 4)
317 L.mn = line(z.m, z.n)
318 z.r, z.s = intersection(CO.EL, L.mn)}
319
320 \begin{center}
321 \begin{tikzpicture}[scale =.5]
322 \tkzGetNodes
323 \tkzDrawLines[red](a,b r,s)
324 \tkzDrawSegments(c,r c,s)
325 \tkzDrawPoints(a,b,c,r,s)
326 \tkzLabelPoints(a,b,c,r,s)
327 \tkzDrawCoordinates[smooth,red](PA.EL)
328 \tkzFillAngles[green!30,opacity=.4](v,c,s)
329 \tkzFillAngles[green!80,opacity=.4](v,c,r)
330 \end{tikzpicture}
331 \end{center}
332 \end{minipage}
333
334 \begin{verbatim}
335 \begin{tikzpicture}[scale =.5]
336 \tkzGetNodes
337 \tkzDrawLines[red](a,b r,s)
338 \tkzDrawSegments(c,r c,s)
339 \tkzDrawPoints(a,b,c,r,s)
340 \tkzLabelPoints(a,b,c,r,s)
341 \tkzDrawCoordinates[smooth,red](PA.EL)
342 \tkzFillAngles[green!30,opacity=.4](v,c,s)
343 \tkzFillAngles[green!80,opacity=.4](v,c,r)
344 \end{tikzpicture}
345 \end{verbatim}
346
347
348 \subsubsection{Intersection all subtypes of conics}
349
350 \begin{verbatim}
351 \directlua{
352 init_elements()
353 z.A = point(0, 0)
354 z.B = point(4, -2)
355 L.dir = line(z.A, z.B)
356 z.F = point(2, 2)
357 CO.EL = conic(z.F, L.dir, 0.8)
358 CO.PA = conic(z.F, L.dir, 1)
359 CO.HY = conic(z.F, L.dir, 1.2)
360 PA.EL = CO.EL:points(0, 1, 50)
361 PA.PA = CO.PA:points(-5, 5, 50)
362 PA.HY = CO.HY:points(-5, 5, 50)
363 z.K = CO.EL.K
364 z.u, z.v = CO.EL.major_axis:get()
365 z.x = L.dir:report(-4, z.K)
366 z.y = L.dir:report(4, z.K)
367 z.r = point(0, 4)
368 z.s = point(4, 1)
369 L.rs = line(z.r, z.s)
370 z.u_1, z.u_2 = intersection(L.rs, CO.EL)
371 z.v_1, z.v_2 = intersection(L.rs, CO.PA)
372 z.w_1, z.w_2 = intersection(L.rs, CO.HY)}
373 \begin{tikzpicture}
374 \tkzGetNodes
375 \tkzDrawCoordinates[smooth](PA.EL)
376 \tkzDrawCoordinates[smooth](PA.PA)
377 \tkzDrawCoordinates[smooth](PA.HY)
378 \tkzDrawLines[add =.5 and .5](r,s u,v)
379 \tkzDrawLines(x,y)
380 \tkzDrawPoints[red](u_1,u_2,v_2,v_1,w_1,w_2)
381 \end{tikzpicture}
382 \end{verbatim}
383 \directlua{
384 init_elements()
385 z.A = point(0, 0)
386 z.B = point(4, -2)
387 L.dir = line(z.A, z.B)
388 z.F = point(2, 2)
389 CO.EL = conic(z.F, L.dir, 0.8)
390 CO.PA = conic(z.F, L.dir, 1)
391 CO.HY = conic(z.F, L.dir, 1.2)
392 PA.EL = CO.EL:points(0, 1, 50)
393 PA.PA = CO.PA:points(-5, 5, 50)
394 PA.HY = CO.HY:points(-5, 5, 50)
395 z.K = CO.EL.K
396 z.u, z.v = CO.EL.major_axis:get()
397 z.x = L.dir:report(-4, z.K)
398 z.y = L.dir:report(4, z.K)
399 z.r = point(0, 4)
400 z.s = point(4, 1)
401 L.rs = line(z.r, z.s)
402 z.u_1, z.u_2 = intersection(L.rs, CO.EL)
403 z.v_1, z.v_2 = intersection(L.rs, CO.PA)
404 z.w_1, z.w_2 = intersection(L.rs, CO.HY)}
405
406 \begin{center}
407 \begin{tikzpicture}[scale =.75]
408 \tkzGetNodes
409 \tkzDrawCoordinates[smooth](PA.EL)
410 \tkzDrawCoordinates[smooth](PA.PA)
411 \tkzDrawCoordinates[smooth](PA.HY)
412 \tkzDrawLines[add =.5 and .5](r,s u,v)
413 \tkzDrawLines(x,y)
414 \tkzDrawPoints[red](u_1,u_2,v_2,v_1,w_1,w_2)
415 \end{tikzpicture}
416 \end{center}
417
418 \subsubsection{Intersection line-parabola, explained}
419 \label{ssub:intersection_line_parabola_explained}
420
421 In this example, we're looking for a parabola inscribed in a triangle, i.e. tangent to the triangle's three sides.
422 I won't go into detail about the first part to obtain the parabola. You'll notice this line
423
424 \begin{mybox}
425 \begin{verbatim}
426 L.euler = T:euler_line():swap_line()
427 \end{verbatim}
428 \end{mybox}
429
430 it swaps the ends of the Euler line, as we'll see later.
431
432 To construct the points of contact, it is necessary to find the intersections of the parabola with the sides:
433
434 \begin{mybox}
435 \begin{verbatim}
436 z.ta = intersection(PA, T.bc)
437 z.tb = intersection(PA, T.ca)
438 z.tc = intersection(PA, T.ab)
439 \end{verbatim}
440 \end{mybox}
441
442 We will now detail how to determine the intersection of a line $(ab)$ with the parabola. In this case, Euler's line serves as the directrix of the parabola. Its points have been swapped to maintain the correct order of abscissas—that is, negative values on the left and positive values on the right.
443
444 To simplify calculations, it is useful to change the coordinate system by setting the vertex of the parabola as the origin. The focal axis (\code{major\_axis}), oriented from $K$ to $F$, becomes the ordinate axis, while the abscissa axis is chosen so that the new system is \code{direct}.
445
446 I have kept |z.U = OCCS.x| and |z.V = OCCS.y| in the code to visualize the new coordinate system, for example, using |\tkzDrawSegments[red,->](S,U S,V)|. This new system is created with:
447
448 \begin{mybox}
449 \begin{verbatim}
450 O.SKF = occs(L.KF,z.S)
451 \end{verbatim}
452 \end{mybox}
453
454 The line $(KF)$, the axis of symmetry of the parabola, becomes the ordinate axis. In this new coordinate system, the equation of the parabola is $y = \dfrac{x^2}{2p}$, where $p$ is the distance $KF$, also known as the \code{latus rectum}.
455
456 The \code{coordinates} method of the \code{occs} class allows you to obtain the new coordinates of each point. The \code{param\_line} function calculates the coefficients of the line's equation (this function is currently internal and its name may change). Then, \code{solve\_para\_line} is used to find the common points between the line and the parabola (again, this function is internal and subject to modification).
457
458 The result is two abscissas that must be placed on the axis passing through $S$ and orthogonal to the focal axis. This is why it was important to position the curve correctly. If you remove |swap_line| for Euler's line, you will see that the curve becomes the reflection of the previous one. While the parabola remains unchanged overall, the intersection points will not.
459
460 Finally, the abscissas of the intersection points must be placed, and then the intersections of the lines orthogonal to Euler's line passing through these abscissas with the line $(ab)$ must be determined.
461
462 Note: This geometric method is more appropriate than determining the intersection points' coordinates using formulas. Indeed, those coordinates would be expressed in the new coordinate system, requiring an additional transformation to return to the original system.
463
464 \begin{verbatim}
465 \directlua{
466 init_elements()
467 z.A = point(0, 0)
468 z.B = point(6, 0)
469 z.C = point(2, 3)
470 T.ABC = triangle(z.A, z.B, z.C)
471 L.euler = T.ABC:euler_line():swap_line()
472 z.F = T.ABC:kimberling(110)
473 z.H = T.ABC.orthocenter
474 z.O = T.ABC.circumcenter
475 z.Ω = point(0, 0)
476 z.i = point(1, 0)
477 z.j = point(0, 1)
478 CO.PA = conic(z.F, L.euler, 1)
479 PA.curve = CO.PA:points(-3.5, 5.5, 50)
480 local p = CO.PA.p
481 z.K = CO.PA.K
482 z.S = tkz.midpoint(z.F,z.K)
483 L.KF = CO.PA.major_axis
484 z.ta = intersection(CO.PA,T.ABC.bc)
485 z.tb = intersection(CO.PA,T.ABC.ca)
486 z.tc = intersection(CO.PA,T.ABC.ab)
487 % new occs
488 O.SKF = occs(L.KF, z.S)
489 z.U = O.SKF.x
490 z.V = O.SKF.y
491 % line a,b
492 z.a = point(3, 6)
493 z.b = point(8, -1)
494 L.ab = line(z.a, z.b)
495 % coordinates in the new occs
496 Xa,Ya = O.SKF:coordinates(z.a)
497 Xb,Yb = O.SKF:coordinates(z.b)
498 % solve in the new occs
499 local r,s = tkz.line_coefficients(Xa, Ya ,Xb, Yb)
500 r1,r2 = tkz.solve_quadratic_(1, -2 * p * r, -2 * p * s)
501 z.x = O.SKF.abscissa:report(r1, z.K)
502 z.y = O.SKF.abscissa:report(r2, z.K)
503 L1 = L.euler:ortho_from(z.x)
504 L2 = L.euler:ortho_from(z.y)
505 z.s_1 = intersection(L.ab, L1)
506 z.s_2 = intersection(L.ab, L2)}
507 \begin{tikzpicture}
508 \tkzGetNodes
509 \tkzDrawCoordinates[smooth,purple,thick](PA.curve)
510 \tkzDrawLines[add = .2 and 1](A,B A,C B,C K,F O,H)
511 \tkzDrawPolygon[thick,cyan](A,B,C)
512 \tkzDrawSegment[blue](a,b)
513 \tkzDrawPoints(F,K,H,S,O)
514 \tkzDrawPoints(A,B,F,K,S,ta,tb,tc)
515 \tkzDrawPoints[red,size=2](s_1,s_2)
516 \tkzLabelPoints[red,above](s_1)
517 \tkzLabelPoints[red,right](s_2)
518 \tkzLabelPoints(F,S,O,A,B)
519 \tkzLabelPoints[above](C)
520 \tkzLabelPoints[left](H,K)
521 \end{tikzpicture}
522 \end{verbatim}
523
524 \directlua{
525 init_elements()
526 z.A = point(0, 0)
527 z.B = point(6, 0)
528 z.C = point(2, 3)
529 T.ABC = triangle(z.A, z.B, z.C)
530 L.euler = T.ABC:euler_line():swap_line()
531 z.F = T.ABC:kimberling(110)
532 z.H = T.ABC.orthocenter
533 z.O = T.ABC.circumcenter
534 z.Ω = point(0, 0)
535 z.i = point(1, 0)
536 z.j = point(0, 1)
537 CO.PA = conic(z.F, L.euler, 1)
538 PA.curve = CO.PA:points(-3.5, 5.5, 50)
539 local p = CO.PA.p
540 z.K = CO.PA.K
541 z.S = tkz.midpoint(z.F,z.K)
542 L.KF = CO.PA.major_axis
543 z.ta = intersection(CO.PA,T.ABC.bc)
544 z.tb = intersection(CO.PA,T.ABC.ca)
545 z.tc = intersection(CO.PA,T.ABC.ab)
546 % new occs
547 O.SKF = occs(L.KF, z.S)
548 z.U = O.SKF.x
549 z.V = O.SKF.y
550 % line a,b
551 z.a = point(3, 6)
552 z.b = point(8, -1)
553 L.ab = line(z.a, z.b)
554 % coordinates in the new occs
555 Xa,Ya = O.SKF:coordinates(z.a)
556 Xb,Yb = O.SKF:coordinates(z.b)
557 % solve in the new occs
558 local r,s = tkz.line_coefficients(Xa, Ya ,Xb, Yb)
559 r1,r2 = tkz.solve_quadratic_(1, -2 * p * r, -2 * p * s)
560 z.x = O.SKF.abscissa:report(r1, z.K)
561 z.y = O.SKF.abscissa:report(r2, z.K)
562 L1 = L.euler:ortho_from(z.x)
563 L2 = L.euler:ortho_from(z.y)
564 z.s_1 = intersection(L.ab, L1)
565 z.s_2 = intersection(L.ab, L2)}
566
567 \begin{center}
568 \begin{tikzpicture}
569 \tkzGetNodes
570 \tkzDrawCoordinates[smooth,purple,thick](PA.curve)
571 \tkzDrawLines[add = .2 and 1](A,B A,C B,C K,F O,H)
572 \tkzDrawPolygon[thick,cyan](A,B,C)
573 \tkzDrawSegment[blue](a,b)
574 \tkzDrawPoints(F,K,H,S,O)
575 \tkzDrawPoints(A,B,F,K,S,ta,tb,tc)
576 \tkzDrawPoints[red,size=2](s_1,s_2)
577 \tkzLabelPoints[red,above](s_1)
578 \tkzLabelPoints[red,right](s_2)
579 \tkzLabelPoints(F,S,O,A,B)
580 \tkzLabelPoints[above](C)
581 \tkzLabelPoints[left](H,K)
582 \end{tikzpicture}
583 \end{center}
584 \endinput