| 1 |
\subsection{Definition of circle by transformation; \tkzcname{tkzDefCircleBy} } |
| 2 |
These transformations are: |
| 3 |
|
| 4 |
\begin{itemize} |
| 5 |
\item translation; |
| 6 |
\item homothety; |
| 7 |
\item orthogonal reflection or symmetry; |
| 8 |
\item central symmetry; |
| 9 |
\item orthogonal projection; |
| 10 |
\item rotation (degrees); |
| 11 |
\item inversion. |
| 12 |
\end{itemize} |
| 13 |
|
| 14 |
The choice of transformations is made through the options. The macro is \tkzcname{tkzDefCircleBy} and the other for the transformation of a list of points \tkzcname{tkzDefCirclesBy}. For example, we'll write: |
| 15 |
\begin{tkzltxexample}[] |
| 16 |
\tkzDefCircleBy[translation= from A to A'](O,M) |
| 17 |
\end{tkzltxexample} |
| 18 |
$O$ is the center and $M$ is a point on the circle. |
| 19 |
The image is a circle. The new center is |tkzFirstPointResult| and |tkzSecondPointResult| is a point on the new circle. You can get the results with the macro \tkzcname{tkzGetPoints}. |
| 20 |
\medskip |
| 21 |
\begin{NewMacroBox}{tkzDefCircleBy}{\oarg{local options}\parg{pt1,pt2}}% |
| 22 |
The argument is a couple of points. The results is a couple of points. If you want to keep these points then the macro \tkzcname{tkzGetPoints\{O'\}\{M'\}} allows you to assign the name \tkzname{O'} to the center and \tkzname{M'} to the point on the circle. |
| 23 |
|
| 24 |
\begin{tabular}{lll}% |
| 25 |
\toprule |
| 26 |
arguments & definition & examples \\ |
| 27 |
\midrule |
| 28 |
\TAline{pt1,pt2} {existing points} {$(O,M)$} |
| 29 |
\bottomrule |
| 30 |
\end{tabular} |
| 31 |
|
| 32 |
\begin{tabular}{lll}% |
| 33 |
options & & examples \\ |
| 34 |
\midrule |
| 35 |
\TOline{translation}{= from \#1 to \#2}{[translation=from A to B](O,M)} |
| 36 |
\TOline{homothety} {= center \#1 ratio \#2}{[homothety=center A ratio .5](O,M)} |
| 37 |
\TOline{reflection} {= over \#1--\#2}{[reflection=over A--B](O,M)} |
| 38 |
\TOline{symmetry } {= center \#1}{[symmetry=center A](O,M)} |
| 39 |
\TOline{projection }{= onto \#1--\#2}{[projection=onto A--B](O,M)} |
| 40 |
\TOline{rotation } {= center \#1 angle \#2}{[rotation=center O angle 30](O,M)} |
| 41 |
\TOline{inversion}{= center \#1 through \#2}{[inversion =center O through A](O,M)} |
| 42 |
% \TOline{inversion negative}{= center \#1 through \#2}{[inversion negative =center O through A](O,M)} |
| 43 |
\bottomrule |
| 44 |
\end{tabular} |
| 45 |
|
| 46 |
\medskip |
| 47 |
\emph{The image is only defined and not drawn.} |
| 48 |
\end{NewMacroBox} |
| 49 |
|
| 50 |
\subsubsection{\tkzname{Translation}} |
| 51 |
\begin{tkzexample}[latex=7cm,small] |
| 52 |
\begin{tikzpicture}[>=latex] |
| 53 |
\tkzDefPoint(0,0){A} \tkzDefPoint(3,1){B} |
| 54 |
\tkzDefPoint(3,2){C} \tkzDefPoint(4,3){D} |
| 55 |
\tkzDefCircleBy[translation= from B to A](C,D) |
| 56 |
\tkzGetPoints{C'}{D'} |
| 57 |
\tkzDrawPoints[teal](A,B,C,D,C',D') |
| 58 |
\tkzDrawSegments[orange,->](A,B) |
| 59 |
\tkzDrawCircles(C,D C',D') |
| 60 |
\tkzLabelPoints[color=teal](A,B,C,C') |
| 61 |
\tkzLabelPoints[color=teal,above](D,D') |
| 62 |
\end{tikzpicture} |
| 63 |
\end{tkzexample} |
| 64 |
|
| 65 |
\subsubsection{\tkzname{Reflection} (orthogonal symmetry)} |
| 66 |
|
| 67 |
\begin{tkzexample}[latex=7cm,small] |
| 68 |
\begin{tikzpicture}[>=latex] |
| 69 |
\tkzDefPoint(0,0){A} \tkzDefPoint(3,1){B} |
| 70 |
\tkzDefPoint(3,2){C} \tkzDefPoint(4,3){D} |
| 71 |
\tkzDefCircleBy[reflection = over A--B](C,D) |
| 72 |
\tkzGetPoints{C'}{D'} |
| 73 |
\tkzDrawPoints[teal](A,B,C,D,C',D') |
| 74 |
\tkzDrawLine[add =0 and 1][orange](A,B) |
| 75 |
\tkzDrawCircles(C,D C',D') |
| 76 |
\tkzLabelPoints[color=teal](A,B,C,C') |
| 77 |
\tkzLabelPoints[color=teal,right](D,D') |
| 78 |
\end{tikzpicture} |
| 79 |
\end{tkzexample} |
| 80 |
|
| 81 |
\subsubsection{\tkzname{Homothety}} |
| 82 |
|
| 83 |
\begin{tkzexample}[latex=7cm,small] |
| 84 |
\begin{tikzpicture}[scale=1.2] |
| 85 |
\tkzDefPoint(0,0){A} \tkzDefPoint(3,1){B} |
| 86 |
\tkzDefPoint(3,2){C} \tkzDefPoint(4,3){D} |
| 87 |
\tkzDefCircleBy[homothety=center A ratio .5](C,D) |
| 88 |
\tkzGetPoints{C'}{D'} |
| 89 |
\tkzDrawPoints[teal](A,C,D,C',D') |
| 90 |
\tkzDrawCircles(C,D C',D') |
| 91 |
\tkzLabelPoints[color=teal](A,C,C') |
| 92 |
\tkzLabelPoints[color=teal,right](D,D') |
| 93 |
\end{tikzpicture} |
| 94 |
\end{tkzexample} |
| 95 |
|
| 96 |
\subsubsection{\tkzname{Symmetry}} |
| 97 |
\begin{tkzexample}[latex=7cm,small] |
| 98 |
\begin{tikzpicture}[scale=1] |
| 99 |
\tkzDefPoint(3,1){B} |
| 100 |
\tkzDefPoint(3,2){C} \tkzDefPoint(4,3){D} |
| 101 |
\tkzDefCircleBy[symmetry=center B](C,D) |
| 102 |
\tkzGetPoints{C'}{D'} |
| 103 |
\tkzDrawPoints[teal](B,C,D,C',D') |
| 104 |
\tkzDrawLines[orange](C,C' D,D') |
| 105 |
\tkzDrawCircles(C,D C',D') |
| 106 |
\tkzLabelPoints[color=teal](C,C') |
| 107 |
\tkzLabelPoints[color=teal,above](D) |
| 108 |
\tkzLabelPoints[color=teal,below](D') |
| 109 |
\end{tikzpicture} |
| 110 |
\end{tkzexample} |
| 111 |
|
| 112 |
\subsubsection{\tkzname{Rotation}} |
| 113 |
\begin{tkzexample}[latex=7cm,small] |
| 114 |
\begin{tikzpicture}[scale=0.5] |
| 115 |
\tkzDefPoint(3,-1){B} |
| 116 |
\tkzDefPoint(3,2){C} \tkzDefPoint(4,3){D} |
| 117 |
\tkzDefCircleBy[rotation=center B angle 90](C,D) |
| 118 |
\tkzGetPoints{C'}{D'} |
| 119 |
\tkzDrawPoints[teal](B,C,D,C',D') |
| 120 |
\tkzLabelPoints[color=teal](B,C,D,C',D') |
| 121 |
\tkzDrawCircles(C,D C',D') |
| 122 |
\end{tikzpicture} |
| 123 |
\end{tkzexample} |
| 124 |
|
| 125 |
\subsubsection{\tkzname{Inversion}} |
| 126 |
|
| 127 |
\begin{tkzexample}[latex=7cm,small] |
| 128 |
\begin{tikzpicture}[scale=1.5] |
| 129 |
\tkzSetUpPoint[size=3,color=red,fill=red!20] |
| 130 |
\tkzSetUpStyle[color=purple,ultra thin]{st1} |
| 131 |
\tkzSetUpStyle[color=cyan,ultra thin]{st2} |
| 132 |
\tkzDefPoint(2,0){A} \tkzDefPoint(3,0){B} |
| 133 |
\tkzDefPoint(3,2){C} \tkzDefPoint(4,2){D} |
| 134 |
\tkzDefCircleBy[inversion = center B through A](C,D) |
| 135 |
\tkzGetPoints{C'}{D'} |
| 136 |
\tkzDrawPoints(A,B,C,D,C',D') |
| 137 |
\tkzLabelPoints(A,B,C,D,C',D') |
| 138 |
\tkzDrawCircles(B,A) |
| 139 |
\tkzDrawCircles[st1](C,D) |
| 140 |
\tkzDrawCircles[st2](C',D') |
| 141 |
\end{tikzpicture} |
| 142 |
\end{tkzexample} |
| 143 |
|
| 144 |
\endinput |