diff options
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........* |