Debian Codegraph @

texmf-dist/doc/latex/tkz-elements/examples/lua/tkz-elements-demo_3.lua

raw
1 init_elements()
2 z.A = point(0, 0)
3 z.B = point(5, 1)
4 L.AB = line(z.A, z.B)
5 z.C = point(0.8, 3)
6 T.ABC = triangle(z.A, z.B, z.C)
7 z.N = T.ABC.eulercenter
8 z.G = T.ABC.centroid
9 z.O = T.ABC.circumcenter
10 z.H = T.ABC.orthocenter
11 z.Ma, z.Mb, z.Mc = get_points(T.ABC:medial())
12 z.Ha, z.Hb, z.Hc = get_points(T.ABC:orthic())
13 z.Ea, z.Eb, z.Ec = get_points(T.ABC:extouch())
14 L.euler = T.ABC:euler_line()
15 C.circum = T.ABC:circum_circle()
16 C.euler = T.ABC:euler_circle()
17 z.I, z.J = intersection(L.euler, C.euler)
18 CO.E = conic(EL_bifocal(z.H, z.O, z.I))
19 PA.curve = CO.E:points(0, 1, 50)
20 L.AH = line(z.A, z.H)
21 L.BH = line(z.B, z.H)
22 L.CH = line(z.C, z.H)
23 z.X = intersection(L.AH, C.circum)
24 _, z.Y = intersection(L.BH, C.circum)
25 _, z.Z = intersection(L.CH, C.circum)
26 L.BC = line(z.B, z.C)
27 L.XO = line(z.X, z.O)
28 L.YO = line(z.Y, z.O)
29 L.ZO = line(z.Z, z.O)
30 z.x = intersection(L.BC, L.XO)
31 z.U = intersection(L.XO, CO.E)
32 _, z.V = intersection(L.YO, CO.E)
33 _, z.W = intersection(L.ZO, CO.E)