summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/tkz-euclide/latex/TKZdoc-euclide-compass.tex
blob: ab7bbce641cdc3d5ef89f6d8fe5125503e046039 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
%!TEX root = /Users/ego/Boulot/TKZ/tkz-euclide/doc_fr/TKZdoc-euclide-main.tex 

\section{Utilisation du compas}    

\subsection{Macro principale \tkzcname{tkzCompass}} 
\begin{NewMacroBox}{tkzCompass}{\oarg{local options}\parg{A,B}}
\emph{Attention les arguments sont des listes de deux ou bien de trois points. Cette macro est, soit utilisée en partenariat  avec \tkzcname{tkzGetPoint} et/ou \tkzcname{tkzGetLength}, soit en utilisant \tkzname{tkzPointResult} s'il n'est pas nécessaire de conserver le nom.}
  

\medskip
\begin{tabular}{lll}
\toprule
options             & défaut & définition                         \\ 
\midrule
\TOline{delta} {0}{} 
\TOline{length}{0.75}{} 
\TOline{ratio} {.5}{} 
\bottomrule
\end{tabular}
\end{NewMacroBox} 

\subsubsection{Option \tkzname{length}} 
\begin{tkzexample}[latex=7cm]
  \begin{tikzpicture}
      \tkzInit[xmax=7,ymax=6]
      \tkzDefPoint[pos=left](1,1){A}
      \tkzDefPoint(6,1){B}
      \tkzInterCC[R](A,4cm)(B,3cm)
      \tkzGetPoints{C}{D}
      \tkzDrawPoint(C)
      \tkzCompass[color=red,length=1.5](A,C)
      \tkzCompass[color=red](B,C)
      \tkzDrawSegments(A,B A,C B,C)
  \end{tikzpicture}
\end{tkzexample}

\subsubsection{Option \tkzname{delta}} 
\begin{tkzexample}[latex=7cm]
  \begin{tikzpicture} 
    \tkzInit[xmax=5,ymax=5]\tkzGrid[sub]
    \tkzClip
    \tkzDefPoint(0,0){A} 
    \tkzDefPoint(5,0){B}
    \tkzInterCC[R](A,4cm)(B,3cm)
    \tkzGetPoints{C}{D}
    \tkzDrawPoints(A,B,C) 
    \tkzCompass[color=red,delta=20](A,C)
    \tkzCompass[color=red,delta=20](B,C) 
    \tkzDrawPolygon(A,B,C)  
    \tkzMarkAngle(A,C,B)
  \end{tikzpicture}
\end{tkzexample} 

\newpage
\subsection{Multiples constructions \tkzcname{tkzCompasss}} 
\begin{NewMacroBox}{tkzCompasss}{\oarg{local options}\parg{pt1,pt2 pt3,pt4,...}}
\emph{Attention les arguments sont des listes de deux points. Cela permet d'économiser quelques lignes de codes.}
  

\medskip
\begin{tabular}{lll}
\toprule
options             & défaut & définition                         \\ 
\midrule
\TOline{delta} {0}{} 
\TOline{length}{0.75}{} 
\TOline{ratio} {.5}{} 
\end{tabular}
\end{NewMacroBox} 


\begin{center}
\begin{tkzexample}[vbox]
\begin{tikzpicture}[scale=.75]
 \tkzDefPoint(2,2){A}  \tkzDefPoint(5,-2){B}
 \tkzDefPoint(3,4){C}  \tkzDrawPoints(A,B) 
 \tkzDrawPoint[color=red,shape=cross out](C)    
 \tkzCompasss[color  = orange,length = 1](A,B A,C B,C C,B) 
 \tkzShowLine[mediator,color=red,dashed,length = 2](A,B)
 \tkzShowLine[parallel = through C,color    = blue,length   = 2](A,B)
 \tkzDefLine[mediator](A,B)           \tkzGetPoints{i}{j}
 \tkzDefLine[parallel=through C](A,B) \tkzGetPoint{D}
 \tkzDrawLines[add=.6 and .6](C,D A,C B,D)
 \tkzDrawLines(i,j) \tkzDrawPoints(A,B,C,i,j,D)  
 \tkzLabelPoints(A,B,C,i,j,D)
\end{tikzpicture}
\end{tkzexample} 
\end{center}



\newpage 

\subsection{Macro de configuration \tkzcname{tkzSetUpCompass}} 

\begin{NewMacroBox}{tkzSetUpCompass}{\oarg{local options}\parg{A,B} ou \parg{A,B,C}}
\begin{tabular}{lll}
options             & défaut & définition                         \\ 
\midrule
\TOline{line width}  {0.4pt}{épaisseur du trait} 
\TOline{color}  {black!50}{couleur du trait} 
\TOline{style}  {solid}{style du trait solid, dashed,dotted,...}
\end{tabular}
\end{NewMacroBox} 

\begin{center}
\begin{tkzexample}[vbox]
\begin{tikzpicture}
  \tkzInit[xmax=9,ymax=7] \tkzClip 
  \tkzDefPoints{0/1/A, 8/3/B, 3/6/C}
  \tkzDrawPolygon(A,B,C)  
  \tkzSetUpCompass[color=brown,line width=.3 pt,style=dashed]
  \tkzDefLine[bisector](B,A,C)  \tkzGetPoint{a}
  \tkzDefLine[bisector](C,B,A)  \tkzGetPoint{b}
  \tkzShowLine[bisector,size=2,gap=3](B,A,C)
  \tkzShowLine[bisector,size=1,gap=3](C,B,A)   
  \tkzInterLL(A,a)(B,b) \tkzGetPoint{I}
  \tkzDefPointBy[projection= onto A--B](I) \tkzGetPoint{H}
  \tkzDrawCircle[radius,color=red](I,H) 
  \tkzDrawSegments[color=Maroon!50](I,H)
  \tkzDrawLines[add=0 and 5,color=Maroon!50 ](A,a B,b) 
\end{tikzpicture} 
\end{tkzexample} 
\end{center}