]> git.saurik.com Git - wxWidgets.git/commitdiff
pi --> math.pi
authorRobin Dunn <robin@alldunn.com>
Tue, 8 Jun 2004 00:02:05 +0000 (00:02 +0000)
committerRobin Dunn <robin@alldunn.com>
Tue, 8 Jun 2004 00:02:05 +0000 (00:02 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27680 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/wx/lib/ogl/_lines.py

index 32ebb9c6c8186d4ce8011b38ceb8332c62a36b4f..65978c484f788229f4bce21baa01a1f1a30684ac 100644 (file)
@@ -668,7 +668,7 @@ class LineShape(Shape):
             d=-arrow.GetYOffset() # Negate so +offset is above line
 
             if x3 == x1:
-                theta = pi / 2
+                theta = math.pi / 2
             else:
                 theta = math.atan((y3-y1) / (x3-x1))
 
@@ -744,15 +744,15 @@ class LineShape(Shape):
                 if x1 == x2 and y1 == y2:
                     theta = 0.0
                 elif x1 == x2 and y1>y2:
-                    theta = 3.0 * pi / 2
+                    theta = 3.0 * math.pi / 2
                 elif x1 == x2 and y2>y1:
-                    theta = pi / 2
+                    theta = math.pi / 2
                 elif x2>x1 and y2 >= y1:
                     theta = math.atan((y2-y1) / (x2-x1))
                 elif x2<x1:
-                    theta = pi + math.atan((y2-y1) / (x2-x1))
+                    theta = math.pi + math.atan((y2-y1) / (x2-x1))
                 elif x2>x1 and y2<y1:
-                    theta = 2 * pi + math.atan((y2-y1) / (x2-x1))
+                    theta = 2 * math.pi + math.atan((y2-y1) / (x2-x1))
                 else:
                     raise "Unknown arrowhead rotation case"