Lines Matching refs:pi
67 def draw_SVG_ellipse((rx, ry), (cx, cy), width, parent, start_end=(0,2*pi),transform='' ):
125 so.TILT = abs(so.TILT)*(pi/180) #Convert to radians
126 so.ROT_OFFSET = so.ROT_OFFSET*(pi/180) #Convert to radians
152 long_angle = so.ROT_OFFSET + (i*delta_long)*(pi/180.0); #The longitude of this particular line in radians
153 if long_angle > pi:
154 long_angle -= 2*pi
165 rotation = atan(height/width)*(180.0/pi)
171 start_end = (0, 2*pi) #Default start and end angles -> full ellipse
173 if long_angle <= pi/2: #cut out the half ellispse that is hidden
174 start_end = (pi/2, 3*pi/2)
176 start_end = (3*pi/2, pi/2)
195 lat_angle=((delta_lat*i)*(pi/180)) #The angle of this line of latitude (from a pole)
206 if lat_angle > pi-so.TILT: #this LoLat is fully visible
209 proportion = -(acos( tan(lat_angle - pi/2)/tan(pi/2 - so.TILT)) )/pi + 1
210 start_end = ( pi/2 - proportion*pi, pi/2 + proportion*pi ) #make the start and end angles (mirror image around pi/2)