| 1 |
\section{Using the compass} |
| 2 |
|
| 3 |
\subsection{Main macro \tkzcname{tkzCompass}} |
| 4 |
\begin{NewMacroBox}{tkzCompass}{\oarg{local options}\parg{A,B}}% |
| 5 |
This macro allows you to leave a compass trace, i.e. an arc at a designated point. The center must be indicated. Several specific options will modify the appearance of the arc as well as TikZ options such as style, color, line thickness etc. |
| 6 |
|
| 7 |
You can define the length of the arc with the option |length| or the option |delta|. |
| 8 |
|
| 9 |
\medskip |
| 10 |
\begin{tabular}{lll}% |
| 11 |
\toprule |
| 12 |
options & default & definition \\ |
| 13 |
\midrule |
| 14 |
\TOline{delta} {0 (deg)}{Increases the angle of the arc symmetrically} |
| 15 |
\TOline{length}{1 (cm)}{Changes the length (in cm)} |
| 16 |
\end{tabular} |
| 17 |
\end{NewMacroBox} |
| 18 |
|
| 19 |
\subsubsection{Option \tkzname{length}} |
| 20 |
\begin{tkzexample}[latex=7cm,small] |
| 21 |
\begin{tikzpicture} |
| 22 |
\tkzDefPoint(1,1){A} |
| 23 |
\tkzDefPoint(6,1){B} |
| 24 |
\tkzInterCC[R](A,4)(B,3) |
| 25 |
\tkzGetPoints{C}{D} |
| 26 |
\tkzDrawPoint(C) |
| 27 |
\tkzCompass[length=1.5](A,C) |
| 28 |
\tkzCompass(B,C) |
| 29 |
\tkzDrawSegments(A,B A,C B,C) |
| 30 |
\end{tikzpicture} |
| 31 |
\end{tkzexample} |
| 32 |
|
| 33 |
\subsubsection{Option \tkzname{delta}} |
| 34 |
\begin{tkzexample}[latex=7cm,small] |
| 35 |
\begin{tikzpicture} |
| 36 |
\tkzDefPoint(0,0){A} |
| 37 |
\tkzDefPoint(5,0){B} |
| 38 |
\tkzInterCC[R](A,4)(B,3) |
| 39 |
\tkzGetPoints{C}{D} |
| 40 |
\tkzDrawPoints(A,B,C) |
| 41 |
\tkzCompass[delta=20](A,C) |
| 42 |
\tkzCompass[delta=20](B,C) |
| 43 |
\tkzDrawPolygon(A,B,C) |
| 44 |
\tkzMarkAngle(A,C,B) |
| 45 |
\end{tikzpicture} |
| 46 |
\end{tkzexample} |
| 47 |
|
| 48 |
\subsection{Multiple constructions \tkzcname{tkzCompasss}} |
| 49 |
\begin{NewMacroBox}{tkzCompasss}{\oarg{local options}\parg{pt1,pt2 pt3,pt4,\dots}}% |
| 50 |
\tkzHandBomb\ Attention the arguments are lists of two points. This saves a few lines of code. |
| 51 |
|
| 52 |
\medskip |
| 53 |
\begin{tabular}{lll}% |
| 54 |
\toprule |
| 55 |
options & default & definition \\ |
| 56 |
\midrule |
| 57 |
\TOline{delta} {0}{Modifies the angle of the arc by increasing it symmetrically} |
| 58 |
\TOline{length}{1}{Changes the length} |
| 59 |
\end{tabular} |
| 60 |
\end{NewMacroBox} |
| 61 |
|
| 62 |
\subsubsection{Use \tkzcname{tkzCompasss}} % (fold) |
| 63 |
\label{ssub:use_tkzcname_tkzcompasss} |
| 64 |
|
| 65 |
% subsubsection use_tkzcname_tkzcompasss (end) |
| 66 |
\begin{tkzexample}[latex=7cm,small] |
| 67 |
\begin{tikzpicture}[scale=.6] |
| 68 |
\tkzDefPoint(2,2){A} \tkzDefPoint(5,-2){B} |
| 69 |
\tkzDefPoint(3,4){C} \tkzDrawPoints(A,B) |
| 70 |
\tkzDrawPoint[shape=cross out](C) |
| 71 |
\tkzCompasss[new](A,B A,C B,C C,B) |
| 72 |
\tkzShowLine[mediator,new,dashed,length = 2](A,B) |
| 73 |
\tkzShowLine[parallel = through C, |
| 74 |
color=purple,length=2](A,B) |
| 75 |
\tkzDefLine[mediator](A,B) |
| 76 |
\tkzGetPoints{i}{j} |
| 77 |
\tkzDefLine[parallel=through C](A,B) |
| 78 |
\tkzGetPoint{D} |
| 79 |
\tkzDrawLines[add=.6 and .6](C,D A,C B,D) |
| 80 |
\tkzDrawLines(i,j) \tkzDrawPoints(A,B,C,i,j,D) |
| 81 |
\tkzLabelPoints(A,B,C,i,j,D) |
| 82 |
\end{tikzpicture} |
| 83 |
\end{tkzexample} |
| 84 |
|
| 85 |
\endinput |