diff options
author | Karl Berry <karl@freefriends.org> | 2015-05-12 23:15:42 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2015-05-12 23:15:42 +0000 |
commit | 3e889cecea02516b3f73d6574c3791a45e02c50a (patch) | |
tree | 03c51e54634cd5344e0a9f1e96d20a35ffc61c0d /Master/texmf-dist/asymptote/geometry.asy | |
parent | 064ff9e4245f101ee0f01334f3dcba961ba37422 (diff) |
asymptote 2.33
git-svn-id: svn://tug.org/texlive/trunk@37365 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/asymptote/geometry.asy')
-rw-r--r-- | Master/texmf-dist/asymptote/geometry.asy | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Master/texmf-dist/asymptote/geometry.asy b/Master/texmf-dist/asymptote/geometry.asy index 6dc10674bd9..580c49e2e69 100644 --- a/Master/texmf-dist/asymptote/geometry.asy +++ b/Master/texmf-dist/asymptote/geometry.asy @@ -7182,7 +7182,9 @@ void perpendicular(picture pic = currentpicture, pair z, pair align, path g, // If r < 0, return the corresponding exterior arc of radius |r|. path arc(explicit pair B, explicit pair A, explicit pair C, real r) { - return arc(A, r, degrees(B - A), degrees(C - A)); + real BA = degrees(B - A); + real CA = degrees(C - A); + return arc(A, abs(r), BA, CA, (r < 0) ^ ((BA-CA) % 360 < 180) ? CW : CCW); } // *.......End of compatibility routines........* |