Searched refs:pi (Results 1 - 25 of 29) sorted by relevance

12

/inkscape/share/extensions/
H A Dwireframe_sphere.py67 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/
[all...]
H A Dtriangle.py79 c = v_add(b, pt_on_circ(s_a, pi-a_b) ) #get point c
140 a_c = self.options.a_c*pi/180 #in rad
148 a_a = self.options.a_a*pi/180 #in rad
150 if (a_a < pi/2.0) and (s_a < s_b) and (s_a > s_b*sin(a_a) ): #this is an ambigous case
159 a_c = pi - a_a - a_b
165 if not(error) and (a_b < pi) and (a_c < pi): #check that the solution is valid, if so draw acute solution
169 if not(error) and ((a_b > pi) or (a_c > pi) or ambiguous):#we want the obtuse solution
170 a_b = pi
[all...]
H A Dgrid_polar.py143 dtheta = 2 * pi / self.options.a_divs_cent #Angular change between adjacent radial lines at centre
173 dtheta = 2 * pi / self.options.a_divs #work out the angle change for outer lines
176 draw_SVG_line( dr*sin(i*dtheta+pi/2.0), dr*cos(i*dtheta+pi/2.0),
177 rmax*sin(i*dtheta+pi/2.0), rmax*cos(i*dtheta+pi/2.0),
183 angle = i*dtheta-j*dtheta/self.options.a_subdivs+pi/2.0 # the angle of the subdivion line
199 draw_SVG_label_centred(sin(i*dtheta+pi/2.0)*label_radius, #0 at the RHS, mathematical style
200 cos(i*dtheta+pi/2.0)*label_radius+ numeral_size/2.0, #centre the text vertically
H A Ddxf_input.py130 generate_ellipse(vals[groups['10']][0], vals[groups['20']][0], scale*vals[groups['40']][0], 0.0, 1.0, vals[groups['50']][0]*math.pi/180.0, vals[groups['51']][0]*math.pi/180.0)
207 path += 'M %f,%f ' % (xc + rm*math.cos(a1*math.pi/180.0), yc + rm*math.sin(a1*math.pi/180.0))
226 path += 'A %f,%f 0.0 %d %d %f,%f ' % (rm, rm, large, sweep, xc + rm*math.cos(a2*math.pi/180.0), yc + rm*math.sin(a2*math.pi/180.0))
228 path += 'A %f,%f 0.0 %d %d %f,%f ' % (rm, rm, large, sweep, xc + rm*math.cos((a1+180.0)*math.pi/180.0), yc + rm*math.sin((a1+180.0)*math.pi/180.0))
229 path += 'A %f,%f 0.0 %d %d %f,%f ' % (rm, rm, large, sweep, xc + rm*math.cos(a1*math.pi/180.0), yc + rm*math.sin(a1*math.pi/180.
[all...]
H A Dcubicsuperpath.py47 teta = teta*pi/180.0
72 end +=2*pi
74 end -=2*pi
76 NbSectors=int(abs(start-end)*2/pi)+1
78 #v=dTeta*2/pi*0.552
79 #v=dTeta*2/pi*4*(sqrt(2)-1)/3
H A Ddraw_from_triangle.py162 if x == pi/2 or x==-pi/2 or x == 3*pi/2 or x == -3*pi/2: #sec(x) is undefined
168 if x == 0 or x==pi or x==2*pi or x==-2*pi: #csc(x) is undefined
174 if x == 0 or x==pi or x==2*pi or x==-2*pi
[all...]
H A Dspirograph.py70 scale = 2 * math.pi / (ratio * self.options.quality)
72 rotation = - math.pi * self.options.rotation / 180;
H A Drender_gears.py77 two_pi = 2.0 * pi
81 pitch_diameter = float( teeth ) * pitch / pi
99 tooth = ( pi * pitch_diameter ) / ( 2.0 * float( teeth ) )
H A Dradiusrand.py26 a = random.uniform(0.0,2*math.pi)
H A Dparam_curves.py38 t_start = 2 * pi * t_start
39 t_end = 2 * pi * t_end
146 help="Multiply t-range by 2*pi")
H A Dsimpletransform.py52 a=float(args[0])*math.pi/180
61 a=float(result.group(2))*math.pi/180
65 a=float(result.group(2))*math.pi/180
H A Dfuncplot.py43 xstart = 2 * pi * xstart
44 xend = 2 * pi * xend
192 help="Multiply x-range by 2*pi")
H A Dsynfig_output.py225 ag = math.pi + math.atan(dy/dx)
227 ag = math.pi + math.atan(dy/dx)
231 ag = 2*math.pi + math.atan(dy/dx)
233 ag = -1*math.pi/2
235 ag = math.pi/2
241 ag = math.pi
243 return (ag*180)/math.pi
H A Dffgeom.py95 return math.pi * (math.atan2(self.delta_y(), self.delta_x())) / 180
H A Dgcodetools.py132 math.pi2 = math.pi*2
947 sectors = int(abs(alpha)*2/math.pi)+1
957 sectors = int(abs(alpha)*2/math.pi)+1
1468 return (math.pi/2 - math.atan2(arg[0][0], arg[0][1]) ) % math.pi2
1471 return (math.pi/2 - math.atan2(arg[0],arg[1]) ) % math.pi2
1702 a_st = (math.atan2(r.x,-r.y) - math.pi/2) % (math.pi*2)
2312 tang_are_parallel = ((tsa-tea)%math.pi<straight_tolerance or math.pi-(tsa-tea)%math.pi<straight_toleranc
[all...]
H A Dprinting_marks.py154 while i < ( 2 * math.pi ):
155 i += math.pi / 16
H A Dpolyhedron_3d.py181 st.fill = get_darkened_colour(fill_col, face[1]/pi)#darken proportionally to angle to lighting vector
486 angle = eval('so.r'+str(i)+'_ang') *pi/180
/inkscape/src/
H A Dwinconsole.cpp112 PROCESS_INFORMATION pi; local
132 &pi); // information about the created process - unused
136 CloseHandle(pi.hThread);
137 CloseHandle(pi.hProcess);
H A Dsp-star.cpp315 gint pi = (index > 0)? (index - 1) : (star->sides - 1); local
322 Geom::Point prev = (star->flatsided? sp_star_get_xy (star, point, pi) : sp_star_get_xy (star, other, point == SP_STAR_POINT_KNOT2? index : pi));
H A Dsp-item.cpp616 Inkscape::DrawingPattern *pi = new_fill_ps->show( local
618 v->arenaitem->setFillPattern(pi);
619 if (pi) {
641 Inkscape::DrawingPattern *pi = new_stroke_ps->show( local
643 v->arenaitem->setStrokePattern(pi);
644 if (pi) {
H A Dsp-flowtext.cpp338 Inkscape::Text::Layout::OptionalTextTagAttrs pi; local
357 pi.dx.push_back(sl);
383 layout.appendText(str->string, root->style, child, &pi);
/inkscape/src/2geom/
H A Dintersection-graph.h110 PathData(int w, std::size_t pi) argument
111 : path_index(pi)
H A Dintersection-graph.cpp156 std::size_t pi = i->pos.path_index; local
158 PathInterval ival = forward_interval(i->pos, n->pos, _pv[w][pi].size());
161 Point wpoint = _pv[w][pi].pointAt(mid);
366 std::size_t pi = i->pos.path_index; local
381 i = cyclic_prior(i, _components[w][pi].xlist);
383 i = cyclic_next(i, _components[w][pi].xlist);
389 reverse, _pv[i->which][pi].size());
391 _pv[i->which][pi].appendPortionTo(result.back(), ival, prev->p, i->p);
H A Dbezier-utils.cpp750 Point const pi(d[i]);
751 Point const t(pi - d[0]);
782 Point const pi(d[i]);
783 Point const t(pi - d[last]);
/inkscape/share/extensions/ink2canvas/
H A Dsvg.py173 return cx, cy, r, 0, math.pi * 2, True
232 angle = data[2] * (math.pi / 180.0)
272 if r(u,v) <= -1: ad = math.pi
275 if sweepflag == 0 and ad > 0: ad = ad - 2 * math.pi;
276 if sweepflag == 1 and ad < 0: ad = ad + 2 * math.pi;

Completed in 231 milliseconds

12