The page 47 of the Asymptote manual says that the rotate
command "rotates by angle in degrees about z" as follows:
transform rotate(real angle, pair z=(0,0));
I'd like to exploit this feature to arrange n
circles around a hypothetical reference point such that each circle is a rotated version of its adjacent peer with respect to that point by theta
degrees. The result would visually be something like:
Here is what I have tried.
\documentclass{article}
\usepackage{asymptote}
\begin{document}
\begin{asy}
size(5cm);
path p = circle((0,3),1);
for(int i=0; i<=10; ++i)
{
draw(
p*rotate(
(i*pi/18),(0,0)
)
);
}
\end{asy}
\end{document}
However, compilation yields: *no matching function 'operator (path, transform)'.