diff options
Diffstat (limited to 'macros/latex/contrib/tkz/tkz-elements/doc/latex/TKZdoc-elements-classes-ellipse.tex')
-rw-r--r-- | macros/latex/contrib/tkz/tkz-elements/doc/latex/TKZdoc-elements-classes-ellipse.tex | 133 |
1 files changed, 69 insertions, 64 deletions
diff --git a/macros/latex/contrib/tkz/tkz-elements/doc/latex/TKZdoc-elements-classes-ellipse.tex b/macros/latex/contrib/tkz/tkz-elements/doc/latex/TKZdoc-elements-classes-ellipse.tex index 5ea44a57b7..3146f73461 100644 --- a/macros/latex/contrib/tkz/tkz-elements/doc/latex/TKZdoc-elements-classes-ellipse.tex +++ b/macros/latex/contrib/tkz/tkz-elements/doc/latex/TKZdoc-elements-classes-ellipse.tex @@ -56,23 +56,6 @@ The first attributes are the three points that define the ellipse: : the \Iattr z.Co = E.covertex z.Ve = E.vertex \end{tkzelements} -\begin{tikzpicture} - \pgfkeys{/pgf/number format/.cd,fixed,precision=2} - \tkzGetNodes - \tkzDrawCircles[teal](C,A) - \tkzDrawEllipse[red](C,\tkzUseLua{a},\tkzUseLua{b}, - \tkzUseLua{slope}) - \tkzDrawPoints(C,A,B,b,W,S,F1,F2) - \tkzLabelPoints(C,A,B) - \tkzDrawLine[add = .5 and .5](A,W) - \tkzLabelSegment[pos=1.5,above,sloped](A,W){% - slope = \pgfmathprintnumber{\tkzUseLua{slope}}} - \tkzLabelPoint[below](S){South} - \tkzLabelPoint[below left](F1){Focus 1} - \tkzLabelPoint[below left](F2){Focus 2} - \tkzLabelPoint[above right](Ve){Vertex ; East} - \tkzLabelPoint[above right](Co){Covertex ; North} -\end{tikzpicture} \end{Verbatim} \end{minipage} \begin{minipage}{.5\textwidth} @@ -96,9 +79,8 @@ The first attributes are the three points that define the ellipse: : the \Iattr z.Co = E.covertex z.Ve = E.vertex \end{tkzelements} - \hspace*{\fill} \begin{tikzpicture} - \pgfkeys{/pgf/number format/.cd,fixed,precision=2} +\pgfkeys{/pgf/number format/.cd,fixed,precision=2} \tkzGetNodes \tkzDrawCircles[teal](C,A) \tkzDrawEllipse[red](C,\tkzUseLua{a},\tkzUseLua{b},\tkzUseLua{slope}) @@ -113,6 +95,28 @@ The first attributes are the three points that define the ellipse: : the \Iattr \tkzLabelPoint[above right](Co){Covertex ; North} \end{tikzpicture} \end{minipage} + +\begin{Verbatim} +\begin{tikzpicture} + \pgfkeys{/pgf/number format/.cd,fixed,precision=2} + \tkzGetNodes + \tkzDrawCircles[teal](C,A) + \tkzDrawEllipse[red](C,\tkzUseLua{a},\tkzUseLua{b}, + \tkzUseLua{slope}) + \tkzDrawPoints(C,A,B,b,W,S,F1,F2) + \tkzLabelPoints(C,A,B) + \tkzDrawLine[add = .5 and .5](A,W) + \tkzLabelSegment[pos=1.5,above,sloped](A,W){% + slope = \pgfmathprintnumber{\tkzUseLua{slope}}} + \tkzLabelPoint[below](S){South} + \tkzLabelPoint[below left](F1){Focus 1} + \tkzLabelPoint[below left](F2){Focus 2} + \tkzLabelPoint[above right](Ve){Vertex ; East} + \tkzLabelPoint[above right](Co){Covertex ; North} +\end{tikzpicture} +\end{Verbatim} + + % \caption{Class Ellipse} % subsection attributes_of_an_ellipse (end) @@ -202,46 +206,7 @@ The function \Igfct{package}{tkzUseLua (variable)} is used to transfer values to The first two points are the foci of the ellipse, and the third one is the vertex. We can deduce all the other characteristics from these points. \emph{The function launches the |new| method, defining all the characteristics of the ellipse.} -\begin{tkzelements} - scale =1 - z.A = point: new (0 , 0) - z.B = point: new (5 , 1) - L.AB = line : new (z.A,z.B) - z.C = point: new (.8 , 3) - T.ABC = triangle: new (z.A,z.B,z.C) - z.N = T.ABC.eulercenter - z.H = T.ABC.orthocenter - z.O = T.ABC.circumcenter - _,_,z.Mc = get_points (T.ABC: medial ()) - L.euler = line: new (z.H,z.O) - C.circum = circle: new (z.O,z.A) - C.euler = circle: new (z.N,z.Mc) - z.i,z.j = intersection (L.euler,C.circum) - z.I,z.J = intersection (L.euler,C.euler) - E = ellipse: foci (z.H,z.O,z.I) - L.AH = line: new (z.A,z.H) - z.X = intersection (L.AH,C.circum) - L.XO = line: new (z.X,z.O) - z.R,z.S = intersection (L.XO,E) - a,b = E.Rx,E.Ry - ang = math.deg(E.slope) -\end{tkzelements} -\hspace*{\fill} -\begin{tikzpicture} -\tkzGetNodes -\tkzDrawPolygon(A,B,C) -\tkzDrawCircles[cyan](O,A N,I) -\tkzDrawSegments(X,R A,X) -\tkzDrawEllipse[red](N,\tkzUseLua{a},\tkzUseLua{b},\tkzUseLua{ang}) -\tkzDrawLines[add=.2 and .5](I,H) -\tkzDrawPoints(A,B,C,N,O,X,H,R,S,I) -\tkzLabelPoints[above](C,X) -\tkzLabelPoints[above right](N,O) -\tkzLabelPoints[above left](R) -\tkzLabelPoints[left](A) -\tkzLabelPoints[right](B,I,S,H) -\end{tikzpicture} -\hspace*{\fill} +\begin{minipage}{.5\textwidth} \begin{Verbatim} \begin{tkzelements} z.A = point: new (0 , 0) @@ -267,6 +232,50 @@ The first two points are the foci of the ellipse, and the third one is the verte ang = math.deg(E.slope) \end{tkzelements} \end{Verbatim} +\end{minipage} +\begin{minipage}{.5\textwidth} + \begin{tkzelements} + scale =1 + z.A = point: new (0 , 0) + z.B = point: new (5 , 1) + L.AB = line : new (z.A,z.B) + z.C = point: new (.8 , 3) + T.ABC = triangle: new (z.A,z.B,z.C) + z.N = T.ABC.eulercenter + z.H = T.ABC.orthocenter + z.O = T.ABC.circumcenter + _,_,z.Mc = get_points (T.ABC: medial ()) + L.euler = line: new (z.H,z.O) + C.circum = circle: new (z.O,z.A) + C.euler = circle: new (z.N,z.Mc) + z.i,z.j = intersection (L.euler,C.circum) + z.I,z.J = intersection (L.euler,C.euler) + E = ellipse: foci (z.H,z.O,z.I) + L.AH = line: new (z.A,z.H) + z.X = intersection (L.AH,C.circum) + L.XO = line: new (z.X,z.O) + z.R,z.S = intersection (L.XO,E) + a,b = E.Rx,E.Ry + ang = math.deg(E.slope) + \end{tkzelements} + \hspace*{\fill} + \begin{tikzpicture} + \tkzGetNodes + \tkzDrawPolygon(A,B,C) + \tkzDrawCircles[cyan](O,A N,I) + \tkzDrawSegments(X,R A,X) + \tkzDrawEllipse[red](N,\tkzUseLua{a},\tkzUseLua{b},\tkzUseLua{ang}) + \tkzDrawLines[add=.2 and .5](I,H) + \tkzDrawPoints(A,B,C,N,O,X,H,R,S,I) + \tkzLabelPoints[above](C,X) + \tkzLabelPoints[above right](N,O) + \tkzLabelPoints[above left](R) + \tkzLabelPoints[left](A) + \tkzLabelPoints[right](B,I,S,H) + \end{tikzpicture} + \hspace*{\fill} +\end{minipage} + \begin{Verbatim} \begin{tikzpicture} \tkzGetNodes @@ -283,11 +292,7 @@ The first two points are the foci of the ellipse, and the third one is the verte \tkzLabelPoints[left](A) \tkzLabelPoints[right](B,I,S,H) \end{tikzpicture} -\end{Verbatim} - - - - + \end{Verbatim} % subsubsection function_tkzname_ellipse__foci (end) \subsubsection{Method \Imeth{ellipse}{point} and \Imeth{ellipse}{radii}} % (fold) |