/inkscape/share/extensions/ |
H A D | simpletransform.py | 26 def parseTransform(transf,mat=[[1.0, 0.0, 0.0], [0.0, 1.0, 0.0]]): 28 return(mat) 72 matrix=composeTransform(mat,matrix) 78 def formatTransform(mat): 79 return ("matrix(%f,%f,%f,%f,%f,%f)" % (mat[0][0], mat[1][0], mat[0][1], mat[1][1], mat[0][2], mat[ [all...] |
H A D | cubicsuperpath.py | 36 def applymat(mat, pt): 37 x=mat[0][0]*pt[0]+mat[0][1]*pt[1] 38 y=mat[1][0]*pt[0]+mat[1][1]*pt[1] 51 mat=matprod((rotmat(teta),[[1/rx,0],[0,1/ry]],rotmat(-teta))) 52 applymat(mat, A) 53 applymat(mat, B) 93 mat=matprod((rotmat(teta),[[rx,0],[0,ry]],rotmat(-teta))) 95 applymat(mat, pt [all...] |
H A D | print_win32_vector.py | 54 def process_shape(self, node, mat): 93 mat = simpletransform.composeTransform(mat, simpletransform.parseTransform(trans)) 94 simpletransform.applyTransformToPath(mat, p) 127 mat = [[1.0, 0.0, 0.0], [0.0, 1.0, 0.0]] 129 mat = simpletransform.composeTransform(mat, simpletransform.parseTransform(trans)) 131 mat = simpletransform.composeTransform(mat, [[1.0, 0.0, float(x)], [0.0, 1.0, 0.0]]) 133 mat [all...] |
H A D | perspective.py | 64 mat = simpletransform.composeParents(envelope, [[1.0, 0.0, 0.0], [0.0, 1.0, 0.0]]) 69 simpletransform.applyTransformToPath(mat, path) 132 mat = simpletransform.composeParents(path, [[1.0, 0.0, 0.0], [0.0, 1.0, 0.0]]) 135 simpletransform.applyTransformToPath(mat, p) 141 mat = simpletransform.invertTransform(mat) 142 simpletransform.applyTransformToPath(mat, p)
|
H A D | summersnight.py | 56 mat = simpletransform.composeParents(trafo, [[1.0, 0.0, 0.0], [0.0, 1.0, 0.0]]) 61 simpletransform.applyTransformToPath(mat, trafo) 108 mat = simpletransform.composeParents(path, [[1.0, 0.0, 0.0], [0.0, 1.0, 0.0]]) 111 simpletransform.applyTransformToPath(mat, p) 117 mat = simpletransform.invertTransform(mat) 118 simpletransform.applyTransformToPath(mat, p)
|
H A D | pathscatter.py | 219 mat=[[dx,-dy,x],[dy,dx,y]] 221 mat=[[1,0,x],[0,1,y]] 222 return mat 234 mat=[[1,0,-(bbox[0]+bbox[1])/2],[0,1,-(bbox[2]+bbox[3])/2]] 237 mat=simpletransform.composeTransform([[0,-1,0],[1,0,0]],mat) 238 mat[1][2] += self.options.noffset 239 simpletransform.applyTransformToNode(mat,self.patternNode) 247 mat=simpletransform.parseTransform(self.patternNode.get("transform")) 249 simpletransform.applyTransformToNode(mat,chil [all...] |
H A D | dxf_outlines.py | 192 def process_shape(self, node, mat): 240 mat = simpletransform.composeTransform(mat, simpletransform.parseTransform(trans)) 241 simpletransform.applyTransformToPath(mat, p) 260 mat = [[1.0, 0.0, 0.0], [0.0, 1.0, 0.0]] 262 mat = simpletransform.composeTransform(mat, simpletransform.parseTransform(trans)) 264 mat = simpletransform.composeTransform(mat, [[1.0, 0.0, float(x)], [0.0, 1.0, 0.0]]) 266 mat [all...] |
H A D | generate_voronoi.py | 104 mat = simpletransform.composeParents(self.selected[self.options.ids[0]], [[1.0, 0.0, 0.0], [0.0, 1.0, 0.0]]) 110 pattern.set('patternTransform', 'translate(%s,%s)' % (q['x'] - mat[0][2], q['y'] - mat[1][2]))
|
H A D | polyhedron_3d.py | 237 trans_mat = mat(array( [[ cos(a) , -sin(a) , 0 ], 243 trans_mat = mat(array( [[ cos(a) , 0 , sin(a) ], 249 trans_mat = mat(array( [[ 1 , 0 , 0 ], 257 transformed_pts.append((trans_mat * mat(vtx).T).T.tolist()[0] )#transform the points at add to the list 483 trans_mat = mat(identity(3, float)) #init. trans matrix as identity matrix
|
H A D | foldablebox.py | 264 mat = simpletransform.composeParents(self.current_layer, [[1.0, 0.0, 0.0], [0.0, 1.0, 0.0]]) 265 simpletransform.applyTransformToNode(simpletransform.invertTransform(mat), g)
|
H A D | pathmodifier.py | 89 mat=parseTransform(node.get("transform")) 92 applyTransformToNode(mat,child)
|
H A D | hpgl_encoder.py | 231 def processPath(self, node, mat, pen): 237 simpletransform.applyTransformToPath(mat, path)
|
H A D | measure.py | 225 mat = simpletransform.composeParents(node, [[1.0, 0.0, 0.0], [0.0, 1.0, 0.0]]) 227 simpletransform.applyTransformToPath(mat, p)
|
H A D | render_alphabetsoup.py | 539 mat = simpletransform.composeParents(self.current_layer, [[1.0, 0.0, 0.0], [0.0, 1.0, 0.0]]) 540 simpletransform.applyTransformToNode(simpletransform.invertTransform(mat), new)
|
/inkscape/src/live_effects/ |
H A D | lpe-ellipse_5pts.cpp | 39 static double _det3(double (*mat)[3]) argument 47 mat[j][k] = (mat[j][k] * mat[i][i] - mat[j][i] * mat[i][k]); 48 if (i) mat[j][k] /= mat[i-1][i-1]; 52 return mat[2][2]; 54 static double _det5(double (*mat)[ argument [all...] |
H A D | lpe-knot.cpp | 102 Affine mat = from_basis( T, N, pt_and_dir[0] ); local 103 mat = mat.inverse(); 104 Path p = patha * mat;
|
H A D | lpe-rough-hatches.cpp | 329 Affine mat(-hatches_dir[Y], hatches_dir[X], hatches_dir[X], hatches_dir[Y],0,0); 330 transformed_pwd2_in = transformed_pwd2_in * mat; 331 transformed_org *= mat; 337 smthSnake = smthSnake*mat.inverse();
|
/inkscape/src/extension/internal/pdfinput/ |
H A D | pdf-parser.cpp | 2408 double *mat; local 2422 mat = state->getCTM(); 2424 oldCTM[i] = mat[i]; 2426 mat = state->getTextMat(); 2427 newCTM[0] = mat[0] * oldCTM[0] + mat[1] * oldCTM[2]; 2428 newCTM[1] = mat[0] * oldCTM[1] + mat[1] * oldCTM[3]; 2429 newCTM[2] = mat[2] * oldCTM[0] + mat[ [all...] |
/inkscape/src/extension/internal/ |
H A D | odf.cpp | 289 SingularValueDecomposition (const SVDMatrix &mat) : argument 290 A (mat), 987 SVDMatrix mat(2, 2); 988 mat(0, 0) = tf[0]; 989 mat(0, 1) = tf[1]; 990 mat(1, 0) = tf[2]; 991 mat(1, 1) = tf[3]; 993 SingularValueDecomposition svd(mat);
|