summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/generic/pgf/modules/pgfmodulenonlineartransformations.code.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/generic/pgf/modules/pgfmodulenonlineartransformations.code.tex')
-rw-r--r--Master/texmf-dist/tex/generic/pgf/modules/pgfmodulenonlineartransformations.code.tex56
1 files changed, 28 insertions, 28 deletions
diff --git a/Master/texmf-dist/tex/generic/pgf/modules/pgfmodulenonlineartransformations.code.tex b/Master/texmf-dist/tex/generic/pgf/modules/pgfmodulenonlineartransformations.code.tex
index 8e607b207d4..7ce4784110f 100644
--- a/Master/texmf-dist/tex/generic/pgf/modules/pgfmodulenonlineartransformations.code.tex
+++ b/Master/texmf-dist/tex/generic/pgf/modules/pgfmodulenonlineartransformations.code.tex
@@ -25,7 +25,7 @@
% something nonlinear", it just provides a way of computing a
% coordinate. In contrast, installing a polar transformation will
% transform everything being drawn using the \pgfpath... commands an
-% will even turn a straight line into a circle.
+% will even turn a straight line into a circle.
%
% Since computing non-linear transformations is expensive, they are
% only applied "if really necessary".
@@ -48,7 +48,7 @@
\pgf@pos@transform@glob%
\pgf@nlt@list%
}
-}%
+}
@@ -57,13 +57,13 @@
%
% Description:
%
-% Does a "local synchronization" of the nonlinear transformation with
+% Does a "local syncronization" of the nonlinear transformation with
% the linear transformation regarding the translation part of the
-% current nonlinear transformation. The *linear* transformation will be
+% current nonlinear transformatoin. The *linear* transformation will be
% updated so that it translates things to the point to which the
% nonlinear transformation transforms the origin. The nonlinear
% transformation will be reset.
-%
+%
% The net effect is that you can now draw things near the origin as
% before, but with just a linear transformation in force. Note that
% the coordinate system will not be rotated, only a shift is done (use
@@ -81,7 +81,7 @@
\let\pgf@nlt@curveto\pgf@lt@curveto%
\let\pgf@nlt@closepath\pgf@lt@closepath%
\fi%
-}%
+}
@@ -89,14 +89,14 @@
%
% Description:
%
-% Does a "complete local synchronization" of the nonlinear
+% Does a "complete local syncronization" of the nonlinear
% transformation with the linear transformation. The *linear*
% transformation will be updated so that it transforms things to the
% point to which the nonlinear transformation transforms the
% origin. The nonlinear transformation will be reset.
-%
+%
% The net effect is that you can now draw things near the origin as
-% before, but with just a linear transformation in force.
+% before, but with just a linear transformation in force.
\def\pgfapproximatenonlineartransformation{%
\ifx\pgf@nlt@list\pgfutil@empty%
@@ -119,35 +119,35 @@
\let\pgf@nlt@curveto\pgf@lt@curveto%
\let\pgf@nlt@closepath\pgf@lt@closepath%
\fi%
-}%
+}
% Adds a non-linear transformation to the current list of
-% transformations.
+% transformations.
%
% #1 = code
%
% Description:
%
-% When the code #1 is called, \pgf@x and \pgf@y will be set to some
+% When the code #1 is called, \pgf@x and \pgf@y will be set to some
% values, let us call this the point p. The nonlinear transformation
% will now map this point to a new point f(p). The coordinates of this
-% point should be returned in \pgf@x and \pgf@y. Furthermore, consider
+% point shoudl be returned in \pgf@x and \pgf@y. Furthermore, consider
% the two "unit tangents" (going in $x$-direction and in
-% $y$-direction) at point p. The nonlinear transformation will map
+% $y$-direction) at point p. The nonlinear transformaiton will map
% these to new tangents, t_x and t_y. The (not necessarily normalized)
% vectors t_x and t_y should be returned in pgf@xa and -ya and pgf@xb
% and pgf@yb. The macro should not do any global assignments except to
% \pgf@x and \pgf@y, but may do arbitrary local assignments.
-%
+%
% The effect of installing a new transformation is the following: As
% long as there is at least one nonlinear transformation installed,
% whenever the path construction commands add a curve or line to the
% softpath, the line or curve will be "bend" by applying all of the
% nonlinear transformation installed. In particular, straight lines
% will be replaced by curves.
-%
+%
% Note that the normal linear transformation are always applied before
% any nonlinear transformations are applied.
@@ -157,7 +157,7 @@
\let\pgf@nlt@lineto\pgf@nlt@lineto@nlt
\let\pgf@nlt@curveto\pgf@nlt@curveto@nlt
\let\pgf@nlt@closepath\pgf@nlt@closepath@nlt
-}%
+}
\def\pgf@nlt@moveto@nlt#1#2{%
{%
@@ -177,7 +177,7 @@
\global\let\pgf@nlt@last@coord@xaxis\pgf@nlt@last@moveto@xaxis%
\global\let\pgf@nlt@last@coord@yaxis\pgf@nlt@last@moveto@yaxis%
}%
-}%
+}
\def\pgf@nlt@lineto@nlt#1#2{%
@@ -213,11 +213,11 @@
\pgf@nlt@inner@curve%
\fi%
}%
-}%
+}
\def\pgf@nlt@set@temps#1#2{%
\pgfutil@tempdima#1\pgfutil@tempdimb#2%
-}%
+}
\def\pgf@nlt@curveto@nlt#1#2#3#4#5#6{%
{%
@@ -225,11 +225,11 @@
\pgf@temp%
\pgf@nlt@inner@curve%
}%
-}%
+}
\newdimen\pgftransformnonlinearflatness
\pgftransformnonlinearflatness=5pt
-\def\pgfsettransformnonlinearflatness#1{\pgfmathsetlength\pgftransformnonlinearflatness{#1}}%
+\def\pgfsettransformnonlinearflatness#1{\pgfmathsetlength\pgftransformnonlinearflatness{#1}}
@@ -246,9 +246,9 @@
\advance\pgf@ya by-\pgf@y%
\advance\pgf@xb by-\pgf@xc%
\advance\pgf@yb by-\pgf@yc%
- %
+ %
% Now, test whether the flatness is satisfied:
- %
+ %
\pgfutil@tempswafalse
\ifdim\pgfutil@tempdima>\pgftransformnonlinearflatness\pgfutil@tempswatrue\fi%
\ifdim\pgfutil@tempdima<-\pgftransformnonlinearflatness\pgfutil@tempswatrue\fi%
@@ -263,7 +263,7 @@
\ifdim\pgf@yb>\pgftransformnonlinearflatness\pgfutil@tempswatrue\fi%
\ifdim\pgf@yb<-\pgftransformnonlinearflatness\pgfutil@tempswatrue\fi%
\ifpgfutil@tempswa%
- \endgroup% Undo the adjustments...
+ \endgroup% Undo the adjustmenst...
{%
\edef\pgf@orig@xya{\pgf@xa\the\pgf@xa\pgf@ya\the\pgf@ya}
\edef\pgf@orig@xyb{\pgf@xb\the\pgf@xb\pgf@yb\the\pgf@yb}
@@ -305,7 +305,7 @@
\endgroup% Snap back...
\pgf@nlt@do@inner@curve%
\fi%
-}%
+}
\def\pgf@nlt@do@inner@curve{%
\pgf@process{\pgf@x\pgf@xa\pgf@y\pgf@ya\pgf@nlt@list}%
@@ -320,7 +320,7 @@
\pgf@protocolsizes{\pgf@xb}{\pgf@yb}%
\pgf@protocolsizes{\pgf@xc}{\pgf@yc}%
\pgfsyssoftpath@curveto{\the\pgf@xa}{\the\pgf@ya}{\the\pgf@xb}{\the\pgf@yb}{\the\pgf@xc}{\the\pgf@yc}%
-}%
+}
\def\pgf@nlt@closepath@nlt{%
@@ -336,7 +336,7 @@
\fi%
\pgfsyssoftpath@closepath%
}%
-}%
+}
\endinput