vectorgraphics / asymptote

2D & 3D TeX-Aware Vector Graphics Language
https://asymptote.sourceforge.io/
GNU General Public License v3.0
542 stars 90 forks source link

Arc angles aren't accepted in current coord system #333

Open jamadagni opened 2 years ago

jamadagni commented 2 years ago
import geometry;

size(16cm, 0);
currentcoordsys = cartesiansystem(i = N, j = W);

circle c = circle((point)(1, 1), 4);
draw(c);
draw(arc(c, 45, 135), green + 2);

It should be clear that it doesn't treat 45 and 135 wrt the x axis of the currently defined coordinate system but it treats it wrt the same of the default coordinate sytem. I believe this should be fixed.

jamadagni commented 2 years ago

If I initialize the arc by adding degrees(currentcoordsys.i) to the input angles, then it is working correctly, but I shouldn't need to do that. See also issue #334 which is related to this.