diff options
author | Karl Berry <karl@freefriends.org> | 2010-05-16 18:38:18 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2010-05-16 18:38:18 +0000 |
commit | 9b042a93e8f489c694af2e2e121e5aedd7671d8a (patch) | |
tree | 4b4e6b79f46eb1faf6b5ca4b5318ae907daf38bc /Master/texmf/asymptote/plain_arcs.asy | |
parent | 165b3785f8aa3ff267097b479870e9a39ba5c14b (diff) |
asymptote 1.94
git-svn-id: svn://tug.org/texlive/trunk@18288 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf/asymptote/plain_arcs.asy')
-rw-r--r-- | Master/texmf/asymptote/plain_arcs.asy | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Master/texmf/asymptote/plain_arcs.asy b/Master/texmf/asymptote/plain_arcs.asy index 01e750f42cd..140bc3cff19 100644 --- a/Master/texmf/asymptote/plain_arcs.asy +++ b/Master/texmf/asymptote/plain_arcs.asy @@ -23,8 +23,9 @@ path arc(pair c, explicit pair z1, explicit pair z2, bool direction=CCW) real t1=intersect(unitcircle,(0,0)--2*z1)[0]; real t2=intersect(unitcircle,(0,0)--2*z2)[0]; static int n=length(unitcircle); - if(t1 >= t2 && direction) t1 -= n; - if(t2 >= t1 && !direction) t2 -= n; + if(direction) { + if (t1 >= t2) t1 -= n; + } else if(t2 >= t1) t2 -= n; return shift(c)*scale(r)*subpath(unitcircle,t1,t2); } |