28.11.2014 Views

tkz-euclid e 1.16 c AlterMundus

tkz-euclid e 1.16 c AlterMundus

tkz-euclid e 1.16 c AlterMundus

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

20.4 Récupérer un angle 132<br />

20.4 Récupérer un angle<br />

Dans l’exemple précédent, j’ai utilisé la macro \<strong>tkz</strong>GetAngle qui permet de récupérer un angle.<br />

\<strong>tkz</strong>GetAngle{〈name of macro〉}<br />

Cette macro récupère \<strong>tkz</strong>AngleResult et stocke le résultat dans une nouvelle macro.<br />

arguments exemple explication<br />

name of macro \<strong>tkz</strong>GetAngle{ang} \ang contient la valeur de l’angle.<br />

20.5 exemple d’utilisation de \<strong>tkz</strong>GetAngle<br />

Il s’agit ici que (AB) soit la bissectrice de CAD, tel que la pente AD soit nulle. On récupère la pente de (AB) puis<br />

on effectue deux rotations.<br />

A<br />

D<br />

B<br />

C<br />

\begin{tikzpicture}<br />

\<strong>tkz</strong>Init<br />

\<strong>tkz</strong>DefPoint(1,5){A} \<strong>tkz</strong>DefPoint(5,2){B} \<strong>tkz</strong>DrawSegment(A,B)<br />

\<strong>tkz</strong>FindSlopeAngle(A,B)\<strong>tkz</strong>GetAngle{<strong>tkz</strong>ang}<br />

\<strong>tkz</strong>DefPointBy[rotation= center A angle \<strong>tkz</strong>ang ](B) \<strong>tkz</strong>GetPoint{C}<br />

\<strong>tkz</strong>DefPointBy[rotation= center A angle -\<strong>tkz</strong>ang ](B) \<strong>tkz</strong>GetPoint{D}<br />

\<strong>tkz</strong>Compass[length=1,dashed,color=red](A,C)<br />

\<strong>tkz</strong>Compass[delta=10,Maroon](B,C) \<strong>tkz</strong>DrawPoints(A,B,C,D)<br />

\<strong>tkz</strong>LabelPoints(B,C,D) \<strong>tkz</strong>LabelPoints[above left](A)<br />

\<strong>tkz</strong>DrawSegments[style=dashed,color=bistre](A,C A,D)<br />

\end{tikzpicture}<br />

<strong>tkz</strong>-<strong>euclid</strong>e<br />

<strong>AlterMundus</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!