You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The angle of the coordinate. The angle must always be given in degrees
and should be between $-360$ and $720$.
\end{key}
But according to how coord system canvas polar, \pgfpointpolar and the relied \pgfmath(cos|sin)@ are implemented, the restriction -360 <= <angle> <= 720 seems to be unnecessary.
Moreover, whether realized the documented restriction or not, users may already used out-of-range angles in polar coordinates e.g., in foreach loops.
Example showing that out-of-range angles work
\documentclass{article}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
% draw three pairwise parallel line segments without error nor warning\draw (0,0) -- (30:1cm)
[yshift=10pt] (0,0) -- (1080+30:1cm)
[yshift=10pt] (0,0) -- (-720+30:1cm);
\end{tikzpicture}
\end{document}
The text was updated successfully, but these errors were encountered:
Interesting, good catch. I didn't even know that there was supposed to be a restriction. Feel free to remove it from the manual.
hmenke
changed the title
Angle in polar coordinates: loose its accepted value range
Angle in polar coordinates: lose its accepted value range
Sep 17, 2021
3geek14
added a commit
to 3geek14/pgf
that referenced
this issue
Sep 19, 2021
Version: 3.1.9a
In Sec. 13.2.1 "Canvas, XYZ, and Polar Coordinate Systems", page 138, it reads
pgf/doc/generic/pgf/text-en/pgfmanual-en-tikz-coordinates.tex
Lines 195 to 198 in 85d2c38
But according to how coord system
canvas polar
,\pgfpointpolar
and the relied\pgfmath(cos|sin)@
are implemented, the restriction-360 <= <angle> <= 720
seems to be unnecessary.Moreover, whether realized the documented restriction or not, users may already used out-of-range angles in polar coordinates e.g., in
foreach
loops.Example showing that out-of-range angles work
The text was updated successfully, but these errors were encountered: