| 1 |
\section{Miscellaneous tools and mathematical tools} |
| 2 |
\subsection{Duplicate a segment} |
| 3 |
This involves constructing a segment on a given half-line of the same length as a given segment. |
| 4 |
|
| 5 |
\begin{NewMacroBox}{tkzDuplicateSegment}{\parg{pt1,pt2}\parg{pt3,pt4}\marg{pt5}}% |
| 6 |
This involves creating a segment on a given half-line of the same length as a given segment . It is in fact the definition of a point. |
| 7 |
\tkzcname{tkzDuplicateSegment} is the new name of \tkzcname{tkzDuplicateLen}. |
| 8 |
|
| 9 |
\medskip |
| 10 |
\begin{tabular}{lll}% |
| 11 |
\toprule |
| 12 |
arguments & example & explanation \\ |
| 13 |
|
| 14 |
\midrule |
| 15 |
\TAline{(pt1,pt2)(pt3,pt4)\{pt5\}} {\tkzcname{tkzDuplicateSegment}(A,B)(E,F)\{C\}}{AC=EF and $C \in [AB)$} \\ |
| 16 |
\bottomrule |
| 17 |
\end{tabular} |
| 18 |
|
| 19 |
\medskip |
| 20 |
\emph{The macro \tkzcname{tkzDuplicateLength} is identical to this one. } |
| 21 |
\end{NewMacroBox} |
| 22 |
|
| 23 |
\subsubsection{Use of\tkzcname{tkzDuplicateSegment}} |
| 24 |
|
| 25 |
\begin{tkzexample}[latex=6cm,small] |
| 26 |
\begin{tikzpicture}[scale=.5] |
| 27 |
\tkzDefPoints{0/0/A,2/-3/B,2/5/C} |
| 28 |
\tkzDuplicateSegment(A,B)(A,C) |
| 29 |
\tkzGetPoint{D} |
| 30 |
\tkzDrawSegments[new](A,B A,C) |
| 31 |
\tkzDrawSegment[teal](A,D) |
| 32 |
\tkzDrawPoints[new](A,B,C,D) |
| 33 |
\tkzLabelPoints[above right=3pt](A,B,C,D) |
| 34 |
\end{tikzpicture} |
| 35 |
\end{tkzexample} |
| 36 |
|
| 37 |
\subsubsection{Proportion of gold with \tkzcname{tkzDuplicateSegment}} |
| 38 |
\begin{tkzexample}[latex=7cm,small] |
| 39 |
\begin{tikzpicture}[rotate=-90,scale=.4] |
| 40 |
\tkzDefPoints{0/0/A,10/0/B} |
| 41 |
\tkzDefMidPoint(A,B) |
| 42 |
\tkzGetPoint{I} |
| 43 |
\tkzDefPointWith[orthogonal,K=-.75](B,A) |
| 44 |
\tkzGetPoint{C} |
| 45 |
\tkzInterLC(B,C)(B,I) \tkzGetSecondPoint{D} |
| 46 |
\tkzDuplicateSegment(B,D)(D,A) \tkzGetPoint{E} |
| 47 |
\tkzInterLC(A,B)(A,E) \tkzGetPoints{N}{M} |
| 48 |
\tkzDrawArc[orange,delta=10](D,E)(B) |
| 49 |
\tkzDrawArc[orange,delta=10](A,M)(E) |
| 50 |
\tkzDrawLines(A,B B,C A,D) |
| 51 |
\tkzDrawArc[orange,delta=10](B,D)(I) |
| 52 |
\tkzDrawPoints(A,B,D,C,M,I) |
| 53 |
\tkzLabelPoints[below left](A,B,D,C,M,I) |
| 54 |
\end{tikzpicture} |
| 55 |
\end{tkzexample} |
| 56 |
|
| 57 |
\subsubsection{Golden triangle or sublime triangle} |
| 58 |
\begin{tkzexample}[latex=7cm,small] |
| 59 |
\begin{tikzpicture}[scale=.75] |
| 60 |
\tkzDefPoints{0/0/A,5/0/C,0/5/B} |
| 61 |
\tkzDefMidPoint(A,C)\tkzGetPoint{H} |
| 62 |
\tkzDuplicateSegment(H,B)(H,A)\tkzGetPoint{D} |
| 63 |
\tkzDuplicateSegment(A,D)(A,B)\tkzGetPoint{E} |
| 64 |
\tkzDuplicateSegment(A,D)(B,A)\tkzGetPoint{G} |
| 65 |
\tkzInterCC(A,C)(B,G)\tkzGetSecondPoint{F} |
| 66 |
\tkzDrawLine(A,C) |
| 67 |
\tkzDrawArc(A,C)(B) |
| 68 |
\begin{scope}[arc style/.style={color=gray,% |
| 69 |
style=dashed}] |
| 70 |
\tkzDrawArc(H,B)(D) |
| 71 |
\tkzDrawArc(A,D)(B) |
| 72 |
\tkzDrawArc(B,G)(F) |
| 73 |
\end{scope} |
| 74 |
\tkzDrawSegment[dashed](H,B) |
| 75 |
\tkzCompass(B,F) |
| 76 |
\tkzDrawPolygon[new](A,B,F) |
| 77 |
\tkzDrawPoints(A,...,H) |
| 78 |
\tkzLabelPoints[below left](A,...,H) |
| 79 |
\end{tikzpicture} |
| 80 |
\end{tkzexample} |
| 81 |
|
| 82 |
\subsection{Segment length \tkzcname{tkzCalcLength}} |
| 83 |
There's an option in \TIKZ\ named \tkzname{veclen}. This option |
| 84 |
is used to calculate AB if A and B are two points. |
| 85 |
|
| 86 |
The only problem for me is that the version of \TIKZ\ is not accurate enough in some cases. My version uses the \tkzNamePack{xfp} package and is slower, but more accurate. |
| 87 |
|
| 88 |
\begin{NewMacroBox}{tkzCalcLength}{\oarg{local options}\parg{pt1,pt2}}% |
| 89 |
You can store the result with the macro \tkzcname{tkzGetLength} for example \tkzcname{tkzGetLength\{dAB\}} \\ |
| 90 |
defines the macro \tkzcname{dAB}. |
| 91 |
|
| 92 |
\medskip |
| 93 |
\begin{tabular}{lll}% |
| 94 |
\toprule |
| 95 |
arguments & example & explanation \\ |
| 96 |
\midrule |
| 97 |
\TAline{(pt1,pt2)\{name of macro\}} {\tkzcname{tkzCalcLength}(A,B)}{\tkzcname{dAB} gives $AB$ in cm} |
| 98 |
\bottomrule |
| 99 |
\end{tabular} |
| 100 |
|
| 101 |
\medskip |
| 102 |
Only one option |
| 103 |
|
| 104 |
\begin{tabular}{lll}% |
| 105 |
|
| 106 |
\toprule |
| 107 |
options & default & example \\ |
| 108 |
\midrule |
| 109 |
\TOline{cm} {true}{\tkzcname{tkzCalcLength}(A,B) After \tkzcname{tkzGetLength\{dAB\}} \tkzcname{dAB} gives $AB$ in cm} |
| 110 |
\end{tabular} |
| 111 |
\end{NewMacroBox} |
| 112 |
|
| 113 |
\subsubsection{Compass square construction} |
| 114 |
|
| 115 |
\begin{tkzexample}[latex=7cm,small] |
| 116 |
\begin{tikzpicture}[scale=1] |
| 117 |
\tkzDefPoint(0,0){A} \tkzDefPoint(4,0){B} |
| 118 |
\tkzCalcLength(A,B)\tkzGetLength{dAB} |
| 119 |
\tkzDefLine[perpendicular=through A](A,B) |
| 120 |
\tkzGetPoint{D} |
| 121 |
\tkzDefPointWith[orthogonal,K=-1](B,A) |
| 122 |
\tkzGetPoint{F} |
| 123 |
\tkzGetPoint{C} |
| 124 |
\tkzDrawLine[add= .6 and .2](A,B) |
| 125 |
\tkzDrawLine(A,D) |
| 126 |
\tkzShowLine[orthogonal=through A,gap=2](A,B) |
| 127 |
\tkzMarkRightAngle(B,A,D) |
| 128 |
\tkzCompasss(A,D D,C) |
| 129 |
\tkzDrawArc[R](B,\dAB)(80,110) |
| 130 |
\tkzDrawPoints(A,B,C,D) |
| 131 |
\tkzDrawSegments[color=gray,style=dashed](B,C C,D) |
| 132 |
\tkzLabelPoints[below left](A,B,C,D) |
| 133 |
\end{tikzpicture} |
| 134 |
\end{tkzexample} |
| 135 |
|
| 136 |
|
| 137 |
\subsubsection{Example} |
| 138 |
The macro \tkzcname{tkzDefCircle[radius](A,B)} defines the radius that we retrieve with \tkzcname{tkzGetLength}, this result is in \tkzname{cm}. |
| 139 |
|
| 140 |
\begin{tkzexample}[latex=6cm,small] |
| 141 |
\begin{tikzpicture}[scale=.5] |
| 142 |
\tkzDefPoint(0,0){A} |
| 143 |
\tkzDefPoint(3,-4){B} |
| 144 |
\tkzDefMidPoint(A,B) \tkzGetPoint{M} |
| 145 |
\tkzCalcLength(M,B)\tkzGetLength{rAB} |
| 146 |
\tkzDrawCircle(A,B) |
| 147 |
\tkzDrawPoints(A,B) |
| 148 |
\tkzLabelPoints(A,B) |
| 149 |
\tkzDrawSegment[dashed](A,B) |
| 150 |
\tkzLabelSegment(A,B){$\pgfmathprintnumber{\rAB}$} |
| 151 |
\end{tikzpicture} |
| 152 |
\end{tkzexample} |
| 153 |
|
| 154 |
|
| 155 |
\subsection{Transformation from pt to cm or cm to pt} |
| 156 |
Not sure if this is necessary and it is only a division by 28.45274 and a multiplication by the same number. The macros are: |
| 157 |
|
| 158 |
\begin{NewMacroBox}{tkzpttocm}{\parg{number}\marg{name of macro}}% |
| 159 |
The result is stored in a macro. |
| 160 |
|
| 161 |
\medskip |
| 162 |
\begin{tabular}{lll}% |
| 163 |
\toprule |
| 164 |
arguments & example & explanation \\ |
| 165 |
\midrule |
| 166 |
\TAline{(number)\{name of macro\}} {\tkzcname{tkzpttocm}(120)\{len\}}{\tkzcname{len} gives a number of tkzname{cm}} |
| 167 |
\bottomrule |
| 168 |
\end{tabular} |
| 169 |
|
| 170 |
\medskip |
| 171 |
You'll have to use \tkzcname{len} along with \tkzname{cm}. |
| 172 |
\end{NewMacroBox} |
| 173 |
|
| 174 |
\subsection{Change of unit} |
| 175 |
\begin{NewMacroBox}{tkzcmtopt}{\parg{number}\marg{name of macro}}% |
| 176 |
The result is stored in a macro. |
| 177 |
|
| 178 |
\medskip |
| 179 |
\begin{tabular}{lll} |
| 180 |
\toprule |
| 181 |
arguments & example & explanation \\ |
| 182 |
\midrule |
| 183 |
\TAline{(number)\{name of macro\}}{\tkzcname{tkzcmtopt}(5)\{len\}}{\tkzcname{len} length in \tkzname{pts}} |
| 184 |
\bottomrule |
| 185 |
\end{tabular} |
| 186 |
|
| 187 |
\medskip |
| 188 |
\emph{The result can be used with \tkzcname{len}\ \tkzname{pt}} |
| 189 |
\end{NewMacroBox} |
| 190 |
|
| 191 |
|
| 192 |
\subsection{Get point coordinates} |
| 193 |
%<--------------------------------------------------------------------------–> |
| 194 |
% Coordonnées d'un point |
| 195 |
% result in #2x and #2y #1 is the point and we get its coordinates |
| 196 |
% use either $A$ one point \tkzGetPointCoord(A){V} then \Vx = xA and \Vy = yA |
| 197 |
% in cm |
| 198 |
% tkzGetPointCoord with [#1] cm or pt ?? todo |
| 199 |
%<--------------------------------------------------------------------------–> |
| 200 |
\begin{NewMacroBox}{tkzGetPointCoord}{\parg{$A$}\marg{name of macro}}% |
| 201 |
\begin{tabular}{lll}% |
| 202 |
arguments & example & explanation \\ |
| 203 |
\midrule |
| 204 |
\TAline{(point)\{name of macro\}} {\tkzcname{tkzGetPointCoord}(A)\{A\}}{\tkzcname{Ax} and \tkzcname{Ay} give coordinates for $A$} |
| 205 |
\end{tabular} |
| 206 |
|
| 207 |
\medskip |
| 208 |
\emph{Stores in two macros the coordinates of a point. If the name of the macro is \tkzname{p}, then \tkzcname{px} and \tkzcname{py} give the coordinates of the chosen point with the cm as unit.} |
| 209 |
\end{NewMacroBox} |
| 210 |
|
| 211 |
\subsubsection{Coordinate transfer with \tkzcname{tkzGetPointCoord}} |
| 212 |
|
| 213 |
\begin{tkzexample}[width=8cm,small] |
| 214 |
\begin{tikzpicture} |
| 215 |
\tkzInit[xmax=5,ymax=3] |
| 216 |
\tkzGrid[sub,orange] |
| 217 |
\tkzDrawX \tkzDrawY |
| 218 |
\tkzDefPoint(1,0){A} |
| 219 |
\tkzDefPoint(4,2){B} |
| 220 |
\tkzGetPointCoord(A){a} |
| 221 |
\tkzGetPointCoord(B){b} |
| 222 |
\tkzDefPoint(\ax,\ay){C} |
| 223 |
\tkzDefPoint(\bx,\by){D} |
| 224 |
\tkzDrawPoints[color=red](C,D) |
| 225 |
\end{tikzpicture} |
| 226 |
\end{tkzexample} |
| 227 |
|
| 228 |
\subsubsection{Sum of vectors with \tkzcname{tkzGetPointCoord}} |
| 229 |
\begin{tkzexample}[width=6cm,small] |
| 230 |
\begin{tikzpicture}[>=latex] |
| 231 |
\tkzDefPoint(1,4){a} |
| 232 |
\tkzDefPoint(3,2){b} |
| 233 |
\tkzDefPoint(1,1){c} |
| 234 |
\tkzDrawSegment[->,red](a,b) |
| 235 |
\tkzGetPointCoord(c){c} |
| 236 |
\draw[color=blue,->](a) -- ([shift=(b)]\cx,\cy) ; |
| 237 |
\draw[color=purple,->](b) -- ([shift=(b)]\cx,\cy) ; |
| 238 |
\tkzDrawSegment[->,blue](a,c) |
| 239 |
\tkzDrawSegment[->,purple](b,c) |
| 240 |
\end{tikzpicture} |
| 241 |
\end{tkzexample} |
| 242 |
|
| 243 |
\subsection{Swap labels of points} |
| 244 |
|
| 245 |
\begin{NewMacroBox}{tkzSwapPoints}{\parg{$pt1$,$pt2$}}% |
| 246 |
\begin{tabular}{lll}% |
| 247 |
arguments & example & explanation \\ |
| 248 |
\midrule |
| 249 |
\TAline{(pt1,pt2)} {\tkzcname{tkzSwapPoints}(A,B)}{now $A$ has the coordinates of $B$ } |
| 250 |
\end{tabular} |
| 251 |
|
| 252 |
\emph{The points have exchanged their coordinates.} |
| 253 |
\end{NewMacroBox} |
| 254 |
|
| 255 |
\subsubsection{Use of \tkzcname{tkzSwapPoints}} |
| 256 |
|
| 257 |
\begin{tkzexample}[width=6cm,small] |
| 258 |
\begin{tikzpicture} |
| 259 |
\tkzDefPoints{0/0/O,5/-1/A,2/2/B} |
| 260 |
\tkzSwapPoints(A,B) |
| 261 |
\tkzDrawPoints(O,A,B) |
| 262 |
\tkzLabelPoints(O,A,B) |
| 263 |
\end{tikzpicture} |
| 264 |
\end{tkzexample} |
| 265 |
|
| 266 |
\subsection{Dot Product} |
| 267 |
In Euclidean geometry, the dot product of the Cartesian coordinates of two vectors is widely used. |
| 268 |
|
| 269 |
\begin{NewMacroBox}{tkzDotProduct}{\parg{$pt1$,$pt2$,$pt3$}}% |
| 270 |
The dot product of two vectors $\overrightarrow{u} = [a,b]$ and $\overrightarrow{v} = [a',b']$ is defined as: $\overrightarrow{u}\cdot \overrightarrow{v} = aa' + bb'$ |
| 271 |
|
| 272 |
$\overrightarrow{u} = \overrightarrow{pt1pt2}$ $\overrightarrow{v} = \overrightarrow{pt1pt3}$ |
| 273 |
|
| 274 |
\begin{tabular}{lll}% |
| 275 |
arguments & example & explanation \\ |
| 276 |
\midrule |
| 277 |
\TAline{(pt1,pt2,pt3)} {\tkzcname{tkzDotProduct}(A,B,C)}{the result is $\overrightarrow{AB}\cdot \overrightarrow{AC}$} |
| 278 |
\end{tabular} |
| 279 |
|
| 280 |
\emph{The result is a number that can be retrieved with \tkzcname{tkzGetResult}.} |
| 281 |
\end{NewMacroBox} |
| 282 |
|
| 283 |
\subsubsection{Simple example} % (fold) |
| 284 |
\label{ssub:simple_example} |
| 285 |
|
| 286 |
\begin{tkzexample}[small,latex=7cm] |
| 287 |
\begin{tikzpicture} |
| 288 |
\tkzDefPoints{-2/-3/A,4/0/B,1/3/C} |
| 289 |
\tkzDefPointBy[projection= onto A--B](C) |
| 290 |
\tkzGetPoint{H} |
| 291 |
\tkzDrawSegment(C,H) |
| 292 |
\tkzMarkRightAngle(C,H,A) |
| 293 |
\tkzDrawSegments[vector style](A,B A,C) |
| 294 |
\tkzDrawPoints(A,H) \tkzLabelPoints(A,B,H) |
| 295 |
\tkzLabelPoints[above](C) |
| 296 |
\tkzDotProduct(A,B,C) \tkzGetResult{pabc} |
| 297 |
% \pgfmathparse{round(10*\pabc)/10} |
| 298 |
\let\pabc\pgfmathresult |
| 299 |
\node at (1,-3) {$\overrightarrow{PA}\cdot \overrightarrow{PB}=\pabc$}; |
| 300 |
\tkzDotProduct(A,H,B) \tkzGetResult{phab} |
| 301 |
% \pgfmathparse{round(10*\phab)/10} |
| 302 |
\let\phab\pgfmathresult |
| 303 |
\node at (1,-4) {$PA \times PH = \phab $}; |
| 304 |
\end{tikzpicture} |
| 305 |
\end{tkzexample} |
| 306 |
% subsubsection simple_example (end) |
| 307 |
|
| 308 |
|
| 309 |
\subsubsection{Cocyclic points} % (fold) |
| 310 |
\label{ssub:cocyclicpts} |
| 311 |
|
| 312 |
\begin{tkzexample}[small,latex=7cm] |
| 313 |
\begin{tikzpicture}[scale=.75] |
| 314 |
\tkzDefPoints{1/2/O,5/2/B,2/2/P,3/3/Q} |
| 315 |
\tkzInterLC[common=B](O,B)(O,B) \tkzGetFirstPoint{A} |
| 316 |
\tkzInterLC[common=B](P,Q)(O,B) \tkzGetPoints{C}{D} |
| 317 |
\tkzDrawCircle(O,B) |
| 318 |
\tkzDrawSegments(A,B C,D) |
| 319 |
\tkzDrawPoints(A,B,C,D,P) |
| 320 |
\tkzLabelPoints(P) |
| 321 |
\tkzLabelPoints[below left](A,C) |
| 322 |
\tkzLabelPoints[above right](B,D) |
| 323 |
\tkzDotProduct(P,A,B) \tkzGetResult{pab} |
| 324 |
\pgfmathparse{round(10*\pab)/10} |
| 325 |
\let\pab\pgfmathresult |
| 326 |
\tkzDotProduct(P,C,D) \tkzGetResult{pcd} |
| 327 |
\pgfmathparse{round(10*\pcd)/10} |
| 328 |
\let\pcd\pgfmathresult |
| 329 |
\node at (1,-3) {% |
| 330 |
$\overrightarrow{PA}\cdot \overrightarrow{PB} = |
| 331 |
\overrightarrow{PC}\cdot \overrightarrow{PD}$}; |
| 332 |
\node at (1,-4)% |
| 333 |
{$\overrightarrow{PA}\cdot \overrightarrow{PB}=\pab$}; |
| 334 |
\node at (1,-5){% |
| 335 |
$\overrightarrow{PC}\cdot \overrightarrow{PD} =\pcd$}; |
| 336 |
\end{tikzpicture} |
| 337 |
\end{tkzexample} |
| 338 |
% subsubsection cocyclicpts (end) |
| 339 |
|
| 340 |
\newpage |
| 341 |
\subsection{Power of a point with respect to a circle} |
| 342 |
|
| 343 |
\begin{NewMacroBox}{tkzPowerCircle}{\parg{$pt1$}\parg{$pt2$,$pt3$}}% |
| 344 |
\begin{tabular}{lll}% |
| 345 |
arguments & example & explanation \\ |
| 346 |
\midrule |
| 347 |
\TAline{(pt1)(pt2,pt3)} {\tkzcname{tkzPowerCircle}(A)(O,M)}{power of $A$ with respect to the circle (O,A)} |
| 348 |
\end{tabular} |
| 349 |
|
| 350 |
\emph{The result is a number that represents the power of a point with respect to a circle.} |
| 351 |
\end{NewMacroBox} |
| 352 |
|
| 353 |
\subsubsection{Power from the radical axis} % (fold) |
| 354 |
\label{ssub:power} |
| 355 |
|
| 356 |
In this example, the radical axis $(EF)$ has been drawn. A point $H$ has been chosen on $(EF)$ and the power of the point $H$ with respect to the circle of center $A$ has been calculated as well as $PS^2$. You can check that the power of $H$ with respect to the circle of center $C$ as well as $HS'^2, HT^2, HT'^2$ give the same result. |
| 357 |
|
| 358 |
\begin{tkzexample}[small,latex=7cm] |
| 359 |
\begin{tikzpicture}[scale=.5] |
| 360 |
\tkzDefPoints{-1/0/A,0/5/B,5/-1/C,7/1/D} |
| 361 |
\tkzDrawCircles(A,B C,D) |
| 362 |
\tkzDefRadicalAxis(A,B)(C,D) \tkzGetPoints{E}{F} |
| 363 |
\tkzDrawLine[add=1 and 2](E,F) |
| 364 |
\tkzDefPointOnLine[pos=1.5](E,F) |
| 365 |
\tkzGetPoint{H} |
| 366 |
\tkzDefLine[tangent from = H](A,B) |
| 367 |
\tkzGetPoints{T}{T'} |
| 368 |
\tkzDefLine[tangent from = H](C,D) |
| 369 |
\tkzGetPoints{S}{S'} |
| 370 |
\tkzDrawSegments(H,T H,T' H,S H,S') |
| 371 |
\tkzDrawPoints(A,B,C,D,E,F,H,T,T',S,S') |
| 372 |
\tkzPowerCircle(H)(A,B) \tkzGetResult{pw} |
| 373 |
\tkzDotProduct(H,S,S) \tkzGetResult{phtt} |
| 374 |
\node {Power $\approx \pw \approx \phtt$}; |
| 375 |
\end{tikzpicture} |
| 376 |
\end{tkzexample} |
| 377 |
% subsubsection power (end) |
| 378 |
|
| 379 |
\subsection{Radical axis} |
| 380 |
|
| 381 |
In geometry, the radical axis of two non-concentric circles is the set of points whose power with respect to the circles are equal. Here |\tkzDefRadicalAxis(A,B)(C,D)| gives the radical axis of the two circles $\mathcal{C}(A,B)$ and $\mathcal{C}(C,D)$. |
| 382 |
|
| 383 |
\begin{NewMacroBox}{tkzDefRadicalAxis}{\parg{$pt1$,$pt2$}\parg{$pt3$,$pt4$}}% |
| 384 |
\begin{tabular}{lll}% |
| 385 |
arguments & example & explanation \\ |
| 386 |
\midrule |
| 387 |
\TAline{(pt1,pt2)(pt3,pt4)} {\tkzcname{tkzDefRadicalAxis}(A,B)(C,D)}{Two circles with centers $A$ and $C$} |
| 388 |
\midrule |
| 389 |
\end{tabular} |
| 390 |
|
| 391 |
|
| 392 |
\emph{The result is two points of the radical axis.} |
| 393 |
\end{NewMacroBox} |
| 394 |
|
| 395 |
\subsubsection{Two circles disjointed} % (fold) |
| 396 |
\label{ssub:two_circles_disjointed} |
| 397 |
|
| 398 |
|
| 399 |
\begin{tkzexample}[small,latex=8cm] |
| 400 |
\begin{tikzpicture}[scale=.75] |
| 401 |
\tkzDefPoints{-1/0/A,0/2/B,4/-1/C,4/0/D} |
| 402 |
\tkzDrawCircles(A,B C,D) |
| 403 |
\tkzDefRadicalAxis(A,B)(C,D) |
| 404 |
\tkzGetPoints{E}{F} |
| 405 |
\tkzDrawLine[add=1 and 2](E,F) |
| 406 |
\tkzDrawLine[add=.5 and .5](A,C) |
| 407 |
\end{tikzpicture} |
| 408 |
\end{tkzexample} |
| 409 |
% subsubsection two_circles_disjointed (end) |
| 410 |
|
| 411 |
\subsection{Two intersecting circles} % (fold) |
| 412 |
\label{sub:two_intersecting_circles} |
| 413 |
\begin{tkzexample}[small,latex=8cm] |
| 414 |
\begin{tikzpicture}[scale=.5] |
| 415 |
\tkzDefPoints{-1/0/A,0/2/B,3/-1/C,3/-2/D} |
| 416 |
\tkzDrawCircles(A,C B,D) |
| 417 |
\tkzDefRadicalAxis(A,C)(B,D) |
| 418 |
\tkzGetPoints{E}{F} |
| 419 |
\tkzDrawPoints(A,B,C,D,E,F) |
| 420 |
\tkzLabelPoints(A,B,C,D,E,F) |
| 421 |
\tkzDrawLine[add=.25 and .5](E,F) |
| 422 |
\tkzDrawLine[add=.25 and .25](A,B) |
| 423 |
\end{tikzpicture} |
| 424 |
\end{tkzexample} |
| 425 |
% subsection two_intersecting_circles (end) |
| 426 |
|
| 427 |
|
| 428 |
\subsection{Two externally tangent circles} % (fold) |
| 429 |
\label{sub:two_externally_tangent_circles} |
| 430 |
\begin{tkzexample}[small,latex=8cm] |
| 431 |
\begin{tikzpicture}[scale=.5] |
| 432 |
\tkzDefPoints{0/0/A,4/0/B,6/0/C} |
| 433 |
\tkzDrawCircles(A,B C,B) |
| 434 |
\tkzDefRadicalAxis(A,B)(C,B) |
| 435 |
\tkzGetPoints{E}{F} |
| 436 |
\tkzDrawPoints(A,B,C,E,F) |
| 437 |
\tkzLabelPoints(A,B,C,E,F) |
| 438 |
\tkzDrawLine[add=1 and 1](E,F) |
| 439 |
\tkzDrawLine[add=.5 and .5](A,B) |
| 440 |
\end{tikzpicture} |
| 441 |
\end{tkzexample} |
| 442 |
% subsection two_externally_tangent_circles (end) |
| 443 |
|
| 444 |
|
| 445 |
\subsection{Two circles tangent internally} % (fold) |
| 446 |
\label{sub:deux_cercles_tangents_interieurement} |
| 447 |
\begin{tkzexample}[small,latex=8cm] |
| 448 |
\begin{tikzpicture}[scale=.5] |
| 449 |
\tkzDefPoints{0/0/A,3/0/B,5/0/C} |
| 450 |
\tkzDrawCircles(A,C B,C) |
| 451 |
\tkzDefRadicalAxis(A,C)(B,C) |
| 452 |
\tkzGetPoints{E}{F} |
| 453 |
\tkzDrawPoints(A,B,C,E,F) |
| 454 |
\tkzLabelPoints[below right](A,B,C,E,F) |
| 455 |
\tkzDrawLine[add=1 and 1](E,F) |
| 456 |
\tkzDrawLine[add=.5 and .5](A,B) |
| 457 |
\end{tikzpicture} |
| 458 |
\end{tkzexample} |
| 459 |
% subsection deux_cercles_tangents_interieurement (end) |
| 460 |
|
| 461 |
\subsubsection{Three circles} % (fold) |
| 462 |
\label{ssub:threecircles} |
| 463 |
|
| 464 |
|
| 465 |
|
| 466 |
\begin{tkzexample}[small,latex=7cm] |
| 467 |
\begin{tikzpicture}[scale=.4] |
| 468 |
\tkzDefPoints{0/0/A,5/0/a,7/-1/B,3/-1/b,5/-4/C,2/-4/c} |
| 469 |
\tkzDrawCircles(A,a B,b C,c) |
| 470 |
\tkzDefRadicalAxis(A,a)(B,b) \tkzGetPoints{i}{j} |
| 471 |
\tkzDefRadicalAxis(A,a)(C,c) \tkzGetPoints{k}{l} |
| 472 |
\tkzDefRadicalAxis(C,c)(B,b) \tkzGetPoints{m}{n} |
| 473 |
\tkzDrawLines[new](i,j k,l m,n) |
| 474 |
\end{tikzpicture} |
| 475 |
\end{tkzexample} |
| 476 |
% subsubsection threecircles (end) |
| 477 |
|
| 478 |
\subsection{\tkzcname{tkzIsLinear}, \tkzcname{tkzIsOrtho}} |
| 479 |
\begin{NewMacroBox}{tkzIsLinear}{\parg{$pt1$,$pt2$,$pt3$}}% |
| 480 |
\begin{tabular}{lll}% |
| 481 |
arguments & example & explanation \\ |
| 482 |
\midrule |
| 483 |
\TAline{(pt1,pt2,pt3)} {\tkzcname{tkzIsLinear}(A,B,C)}{$A,B,C$ aligned ?} |
| 484 |
\midrule |
| 485 |
\end{tabular} |
| 486 |
|
| 487 |
\emph{\tkzcname{tkzIsLinear} allows to test the alignment of the three points $pt1$,$pt2$,$pt3$. } |
| 488 |
\end{NewMacroBox} |
| 489 |
|
| 490 |
\begin{NewMacroBox}{tkzIsOrtho}{\parg{$pt1$,$pt2$,$pt3$}}% |
| 491 |
\begin{tabular}{lll}% |
| 492 |
arguments & example & explanation \\ |
| 493 |
\midrule |
| 494 |
\TAline{(pt1,pt2,pt3)} {\tkzcname{tkzIsOrtho}(A,B,C)}{$(AB)\perp (AC)$ ? } |
| 495 |
\midrule |
| 496 |
\end{tabular} |
| 497 |
|
| 498 |
\emph{\tkzcname{tkzIsOrtho} allows to test the orthogonality of lines $(pt1pt2)$ and $(pt1pt3)$. } |
| 499 |
\end{NewMacroBox} |
| 500 |
|
| 501 |
\subsubsection{Use of \tkzcname{tkzIsOrtho} and \tkzcname{tkzIsLinear}} |
| 502 |
|
| 503 |
\begin{tkzexample}[small,latex=7cm] |
| 504 |
\begin{tikzpicture} |
| 505 |
\tkzDefPoints{1/-2/A,5/0/B} |
| 506 |
\tkzDefCircle[diameter](A,B) \tkzGetPoint{O} |
| 507 |
\tkzDrawCircle(O,A) |
| 508 |
\tkzDefPointBy[rotation= center O angle 60](B) |
| 509 |
\tkzGetPoint{C} |
| 510 |
\tkzDefPointBy[rotation= center O angle 60](A) |
| 511 |
\tkzGetPoint{D} |
| 512 |
\tkzDrawCircle(O,A) |
| 513 |
\tkzDrawPoints(A,B,C,D,O) |
| 514 |
\tkzIsOrtho(C,A,B) |
| 515 |
\iftkzOrtho |
| 516 |
\tkzDrawPolygon[blue](A,B,C) |
| 517 |
\tkzDrawPoints[blue](A,B,C,D) |
| 518 |
\else |
| 519 |
\tkzDrawPoints[red](A,B,C,D) |
| 520 |
\fi |
| 521 |
\tkzIsLinear(O,C,D) |
| 522 |
\iftkzLinear |
| 523 |
\tkzDrawSegment[orange](C,D) |
| 524 |
\fi |
| 525 |
\end{tikzpicture} |
| 526 |
|
| 527 |
\end{tkzexample} |
| 528 |
|
| 529 |
|
| 530 |
\endinput |