summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/generic/pgf/text-en/pgfmanual-en-base-paths.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/generic/pgf/text-en/pgfmanual-en-base-paths.tex')
-rw-r--r--Master/texmf-dist/doc/generic/pgf/text-en/pgfmanual-en-base-paths.tex45
1 files changed, 35 insertions, 10 deletions
diff --git a/Master/texmf-dist/doc/generic/pgf/text-en/pgfmanual-en-base-paths.tex b/Master/texmf-dist/doc/generic/pgf/text-en/pgfmanual-en-base-paths.tex
index 4117a63eff7..15ba36946b9 100644
--- a/Master/texmf-dist/doc/generic/pgf/text-en/pgfmanual-en-base-paths.tex
+++ b/Master/texmf-dist/doc/generic/pgf/text-en/pgfmanual-en-base-paths.tex
@@ -1,8 +1,11 @@
-% Copyright 2003 by Till Tantau <tantau@cs.tu-berlin.de>.
+% Copyright 2006 by Till Tantau
%
-% This program can be redistributed and/or modified under the terms
-% of the LaTeX Project Public License Distributed from CTAN
-% archives in directory macros/latex/base/lppl.txt.
+% This file may be distributed and/or modified
+%
+% 1. under the LaTeX Project Public License and/or
+% 2. under the GNU Free Documentation License.
+%
+% See the file doc/generic/pgf/licenses/LICENSE for more details.
\section{Constructing Paths}
@@ -202,7 +205,7 @@ In the following, the commands for adding (parts of) (transformed)
circles to a path are described.
\begin{command}{\pgfpatharc\marg{start angle}\marg{end
- angle}\marg{radius}}
+ angle}{\ttfamily\char`\{}\meta{radius}\opt{|/|\meta{y-radius}}{\ttfamily\char`\}}}
This command appends a part of a circle (or an ellipse) to the current
path. Imaging the curve between \meta{start angle} and \meta{end
angle} on a circle of radius \meta{radius} (if $\meta{start angle}
@@ -228,11 +231,9 @@ circles to a path are described.
circle. The ``nearly'' refers to the fact that the circle will not
be closed. You can close it using |\pgfpathclose|.
- The \meta{radius} need not always be a single \TeX\
- dimension. Instead, it can also contain a slash, in which case it
- must consist of two dimensions separated by this slash. In this
- case the first dimension is the $x$-radius and the second the
- $y$-radius of the ellipse from which the curve is taken:
+ If the optional \meta{y-radius} is given, the \meta{radius} is the
+ $x$-radius and the \meta{y-radius} the $y$-radius of the ellipse
+ from which the curve is taken:
\begin{codeexample}[]
\begin{tikzpicture}
@@ -263,6 +264,30 @@ circles to a path are described.
are applied, the bounding box will be tight.
\end{command}
+\begin{command}{\pgfpatharcaxes\marg{start angle}\marg{end
+ angle}\marg{first axis}\marg{second axis}}
+ This command is similar to |\pgfpatharc|. The main difference is how
+ the ellipse or circle is specified from which the arc is taken. The
+ two parameters \meta{first axis} and \meta{second axis} are the
+ $0^\circ$-axis and the $90^\circ$-axis of the ellipse from which the
+ path is taken. Thus, |\pgfpatharc{0}{90}{1cm/2cm}| has the same effect
+ as
+\begin{verbatim}
+\pgfpatharcaxes{0}{90}{\pgfpoint{1cm}{0cm}}{\pgfpoint{0cm}{2cm}}
+\end{verbatim}
+\begin{codeexample}[]
+\begin{tikzpicture}
+ \draw[help lines] (0,0) grid (3,2);
+ \draw (0,0) -- (2cm,5mm) (0,0) -- (0cm,1cm);
+
+ \pgfpathmoveto{\pgfpoint{2cm}{5mm}}
+ \pgfpatharcaxes{0}{90}{\pgfpoint{2cm}{5mm}}{\pgfpoint{0cm}{1cm}}
+ \pgfusepath{draw}
+\end{tikzpicture}
+\end{codeexample}
+\end{command}
+
+
\begin{command}{\pgfpathellipse\marg{center}\marg{first
axis}\marg{second axis}}
The effect of this command is to append an ellipse to the current