Searched defs:math (Results 1 - 25 of 35) sorted by relevance

12

/inkscape/share/extensions/
H A Dhpgl_decoder.py21 import math namespace
H A Dfractalize.py19 import random, math, inkex, simplepath namespace
29 length = math.sqrt(x3*x3 + y3*y3)
H A Dmotion.py19 import math, inkex, simplestyle, simplepath, bezmisc namespace
59 self.vx = math.cos(math.radians(self.options.angle))*self.options.magnitude
60 self.vy = math.sin(math.radians(self.options.angle))*self.options.magnitude
H A Dnicechart.py63 import math namespace
536 + str((width/2) + pie_radius * math.cos(angle/2 + offset)) + ","
537 + str((height/2) + pie_radius * math.sin(angle/2 + offset)) + " "
538 + str((text_offset - 2) * math.cos(angle/2 + offset)) + ","
539 + str((text_offset - 2) * math.sin(angle/2 + offset)))
546 text.set("x", str((width/2) + (pie_radius + text_offset) * math.cos(angle/2 + offset)))
547 text.set("y", str((height/2) + (pie_radius + text_offset) * math.sin(angle/2 + offset) + font_size/3))
552 if math.cos(angle/2 + offset) > 0:
H A Dsimplepath.py22 import re, math namespace
204 r = math.sqrt((x**2) + (y**2))
206 theta = math.atan2(y, x) + a
207 params[i] = (r * math.cos(theta)) + cx
208 params[i + 1] = (r * math.sin(theta)) + cy
H A Dspirograph.py19 import inkex, simplestyle, math namespace
70 scale = 2 * math.pi / (ratio * self.options.quality)
72 rotation = - math.pi * self.options.rotation / 180;
86 x = a * math.cos(theta + rotation) + \
87 self.options.penr * math.cos(ratio * theta + rotation) * flip + \
89 y = a * math.sin(theta + rotation) - \
90 self.options.penr * math.sin(ratio * theta + rotation) + \
93 dx = (-a * math.sin(theta + rotation) - \
94 ratio * self.options.penr * math.sin(ratio * theta + rotation) * flip) * scale / 3
95 dy = (a * math
[all...]
H A Dstraightseg.py19 import math, inkex, simplepath, sys namespace
H A Dwhirl.py19 import math, inkex, cubicsuperpath namespace
48 dist = math.sqrt((point[0] ** 2) + (point[1] ** 2))
51 theta = math.atan2(point[1], point[0]) + a
52 point[0] = (dist * math.cos(theta))
53 point[1] = (dist * math.sin(theta))
H A Dradiusrand.py19 import random, math, inkex, cubicsuperpath namespace
26 a = random.uniform(0.0,2*math.pi)
27 x += math.cos(a)*rx
28 y += math.sin(a)*ry
H A Ddots.py19 import inkex, simplestyle, simplepath, math namespace
67 dist = math.sqrt( dx**2 + dy**2 )
H A Drubberstretch.py3 Copyright (C) 2006 Jean-Francois Barraud, barraud@math.univ-lille1.fr
18 barraud@math.univ-lille1.fr
23 import copy, math, re namespace
H A Dtext_extract.py29 import math namespace
H A Dtext_merge.py29 import math namespace
H A Dinterp_att_g.py20 import math namespace
H A Drestack.py24 import inkex, os, csv, math, random namespace
173 distance = math.hypot(cx,cy)*(math.cos(math.radians(-self.options.angle)-math.atan2(cy, cx)))
176 distance = math.hypot(midx - cx, midy - cy)
179 distance = -math.hypot(midx - cx, midy - cy)
H A Daddnodes.py26 import cubicsuperpath, simplestyle, copy, math, re, bezmisc namespace
101 splits = math.ceil(length/self.options.max)
H A Dprinting_marks.py28 import math namespace
154 while i < ( 2 * math.pi ):
155 i += math.pi / 16
157 ' L '+ str(math.sin(i)*r) +','+ str(math.cos(i)*r) +\
158 ' L '+ str(math.sin(i+0.09)*r) +','+ str(math.cos(i+0.09)*r)
H A Dpathalongpath.py3 Copyright (C) 2006 Jean-Francois Barraud, barraud@math.univ-lille1.fr
18 barraud@math.univ-lille1.fr
35 import math namespace
H A Dbezmisc.py21 import math, cmath namespace
36 if m+math.sqrt(n) < 0:
37 m1 = -pow(-(m+math.sqrt(n))/2,1./3)
39 m1 = pow((m+math.sqrt(n))/2,1./3)
40 if m-math.sqrt(n) < 0:
41 n1 = -pow(-(m-math.sqrt(n))/2,1./3)
43 n1 = pow((m-math.sqrt(n))/2,1./3)
171 return math.sqrt(((x2 - x1) ** 2) + ((y2 - y1) ** 2))
192 return math.sqrt(retval)
H A Dhpgl_encoder.py22 import math namespace
35 PI = math.pi
273 length = math.sqrt((x2 - x1) ** 2.0 + (y2 - y1) ** 2.0)
275 length = math.fabs(length)
322 angleStart = math.atan2(pointThree[1] - self.vData[2][2], pointThree[0] - self.vData[2][1])
323 angleVector = math.atan2(pointFour[1] - self.vData[2][2], pointFour[0] - self.vData[2][1]) - angleStart
333 self.storePoint('PD', self.vData[2][1] + math.cos(angle) * self.toolOffset, self.vData[2][2] + math.sin(angle) * self.toolOffset, self.vData[2][3])
338 self.storePoint('PD', self.vData[2][1] + math.cos(angle) * self.toolOffset, self.vData[2][2] + math
[all...]
H A Dpturtle.py19 import math namespace
30 self.setpos((self.__pos[0] + math.cos(math.radians(self.__heading))*mag,
31 self.__pos[1] + math.sin(math.radians(self.__heading))*mag))
33 self.setpos((self.__pos[0] - math.cos(math.radians(self.__heading))*mag,
34 self.__pos[1] - math.sin(math.radians(self.__heading))*mag))
H A Dsimpletransform.py2 Copyright (C) 2006 Jean-Francois Barraud, barraud@math.univ-lille1.fr
18 barraud@math.univ-lille1.fr
24 import copy, math, re namespace
52 a=float(args[0])*math.pi/180
57 matrix=[[math.cos(a),-math.sin(a),cx],[math.sin(a),math.cos(a),cy]]
61 a=float(result.group(2))*math.pi/180
62 matrix=[[1,math
[all...]
H A Dinterp.py19 import inkex, cubicsuperpath, simplestyle, copy, math, bezmisc, simpletransform, pathmodifier namespace
28 return math.sqrt(((x2 - x1) ** 2) + ((y2 - y1) ** 2))
70 retval = hex(int(math.floor(s + (time * (e - s)))))[2:]
H A Dpathmodifier.py3 Copyright (C) 2006 Jean-Francois Barraud, barraud@math.univ-lille1.fr
18 barraud@math.univ-lille1.fr
32 import math namespace
H A Dpathscatter.py3 Copyright (C) 2006 Jean-Francois Barraud, barraud@math.univ-lille1.fr
18 barraud@math.univ-lille1.fr
35 import math namespace

Completed in 35 milliseconds

12