[metapost] problem with negative's angle ?
Christophe Poulain
chrpoulain at gmail.com
Sat Mar 8 08:04:08 CET 2014
Hi,
I'm a french user of Metapost and i've discovered this problem.
%>------------------------
prologues:=2;
beginfig(1);
path cc;
cc=fullcircle scaled 3cm;
draw cc;
for i=0 upto 11:
label(decimal(i),point(arctime(((90-i*30)/360)*arclength cc) of cc) of
cc);
endfor;
endfig;
end
%>--------------------------
There isn't number if "the angle" is negative.
However, if I compile the code below, there is no problem.
%>----------------------
prologues:=2;
beginfig(1);
path cc;
cc=fullcircle scaled 3cm;
draw cc;
for i=0 upto 11:
label(decimal(12-i),point(arctime(((90+i*30)/360)*arclength cc) of cc)
of cc);
endfor;
endfig;
end
%>-----------------------
I don't understand my mistake...
Christophe
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/metapost/attachments/20140308/54f07ccd/attachment.html>
More information about the metapost
mailing list