summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/tkz/tkz-euclide/examples/tkzEuclide-26-1-2.tex
blob: edb0c11dd1e001bd8b9621f4e6d4fbfb79848264 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
\input{preamble-standalone.ltx}
\begin{document}

% Ex. No. 188 (Section 26.1.2 : Exemple de \tkzcname{tkzShowLine} et \tkzname{perpendicular})

\begin{tikzpicture}
\tkzDefPoints{0/0/A, 3/2/B, 2/2/C}
\tkzDefLine[perpendicular=through C,K=-.5](A,B) \tkzGetPoint{c}
\tkzShowLine[perpendicular=through C,K=-.5,gap=3](A,B)
\tkzDefPointBy[projection=onto A--B](c)\tkzGetPoint{h}
\tkzMarkRightAngle[fill=lightgray](A,h,C)
\tkzDrawLines[add=1 and 1](A,B C,c)
\tkzDrawPoints(A,B,C,h,c)
\end{tikzpicture}

\end{document}