Code

convert elliptical arc angle from degrees to radians
authoralvinpenner <alvinpenner@users.sourceforge.net>
Sun, 8 Feb 2009 01:24:29 +0000 (01:24 +0000)
committeralvinpenner <alvinpenner@users.sourceforge.net>
Sun, 8 Feb 2009 01:24:29 +0000 (01:24 +0000)
share/extensions/cubicsuperpath.py

index 21c6174e15dad0e2469c1bfdb840cf52d5f5e20e..8be2ad42c99208b81dbfa4db24d1379b236d53f7 100755 (executable)
@@ -44,6 +44,7 @@ def norm(pt):
 def ArcToPath(p1,params):
     A=p1[:]
     rx,ry,teta,longflag,sweepflag,x2,y2=params[:]
+    teta = teta*pi/180.0
     B=[x2,y2]
     if rx==0 or ry==0:
         return([[A,A,A],[B,B,B]])