/inkscape/src/trace/potrace/ |
H A D | bitmap.h | 32 #define bm_scanline(bm, y) ((bm)->map + (ptrdiff_t)(y)*(ptrdiff_t)(bm)->dy) 60 int dy = w == 0 ? 0 : (w - 1) / BM_WORDBITS + 1; local 61 ptrdiff_t size = (ptrdiff_t)dy * (ptrdiff_t)h * (ptrdiff_t)BM_WORDSIZE; 64 if (size < 0 || (h != 0 && dy != 0 && size / h / dy != BM_WORDSIZE)) { 75 bm->dy = dy; 88 ptrdiff_t size = (ptrdiff_t)bm->dy * (ptrdiff_t)bm->h * (ptrdiff_t)BM_WORDSIZE; 95 ptrdiff_t size = (ptrdiff_t)bm->dy * (ptrdiff_t)bm->h * (ptrdiff_t)BM_WORDSIZE; 106 ptrdiff_t size = (ptrdiff_t)bm->dy * (ptrdiff_ [all...] |
/inkscape/src/filters/ |
H A D | offset.cpp | 26 this->dy = 0; 41 this->readAttr( "dy" ); 69 if (read_num != this->dy) { 70 this->dy = read_num; 88 this->readAttr( "dy" ); 121 nr_offset->set_dy(this->dy);
|
H A D | offset.h | 25 double dx, dy; member in class:SPFeOffset
|
/inkscape/share/extensions/ |
H A D | rubberstretch.py | 53 dx,dy=v 58 v[0]=dXdx*dx+dXdy*dy 59 v[1]=dYdx*dx+dYdy*dy 66 # dx,dy=v 67 # v[0]=(1-a/2/(x*x+y*y)*2*x*x)*s*dx+( -a/2/(x*x+y*y)*2*y*x)*s*dy 68 # v[1]=( -a/2/(x*x+y*y)*2*x*y)*s*dx+(1-a/2/(x*x+y*y)*2*y*y)*s*dy
|
H A D | spirograph.py | 95 dy = (a * math.cos(theta + rotation) - \ 99 pathString += 'M ' + str(x) + ',' + str(y) + ' C ' + str(x + dx) + ',' + str(y + dy) + ' ' 101 pathString += str(x - dx) + ',' + str(y - dy) + ' ' + str(x) + ',' + str(y) 110 pathString += ' C ' + str(x + dx) + ',' + str(y + dy) + ' '
|
H A D | grid_cartesian.py | 87 self.OptionParser.add_option("--dy", 89 dest="dy", default=100.0, 132 self.options.dy = self.unittouu(str(self.options.dy) + 'px') 138 ymax = self.options.dy * self.options.y_divs 232 draw_SVG_line(0, self.options.dy*i, 233 xmax, self.options.dy*i, 240 draw_SVG_line(0, self.options.dy*(i+1-log(j,sd)), 241 xmax, self.options.dy*(i+1-log(j,sd)), 258 draw_SVG_line(0, self.options.dy*( [all...] |
H A D | pathalongpath.py | 55 def offset(pathcomp,dx,dy): 59 pt[1]+=dy 181 dy=(self.skelcomp[i][1]-self.skelcomp[i-1][1])/self.lengths[-1] 185 dy=(self.skelcomp[i+1][1]-self.skelcomp[i][1])/self.lengths[i] 191 bpt[1]=y+vy+vx*dy 193 bpt[0]=x+vx*dx-vy*dy 194 bpt[1]=y+vx*dy+vy*dx 201 v[1]=y+vy+vx*dy 203 v[0]=x+vx*dx-vy*dy 204 v[1]=y+vx*dy [all...] |
H A D | dots.py | 66 dy = abs( max(y1,y2) - min(y1,y2) ) 67 dist = math.sqrt( dx**2 + dy**2 ) 69 y = dy/dist
|
H A D | bezmisc.py | 111 dy=3*ay*(t**2)+2*by*t+cy 112 return dx,dy 114 def beziertatslope(((bx0,by0),(bx1,by1),(bx2,by2),(bx3,by3)),(dy,dx)): 118 slope = 1.0*(dy/dx) 122 elif dy: 123 slope = 1.0*(dx/dy)
|
H A D | pathscatter.py | 69 def offset(pathcomp,dx,dy): 73 pt[1]+=dy 213 dy=(self.skelcomp[i][1]-self.skelcomp[i-1][1])/self.lengths[-1] 217 dy=(self.skelcomp[i+1][1]-self.skelcomp[i][1])/self.lengths[i] 219 mat=[[dx,-dy,x],[dy,dx,y]]
|
H A D | voronoi.py | 344 dy = self.y - other.y 345 return math.sqrt(dx*dx + dy*dy) 384 dy = float(s2.y - s1.y) 386 ady = abs(dy) 389 newedge.c = float(s1.x * dx + s1.y * dy + (dx*dx + dy*dy)*0.5) 393 newedge.b = dy/dx 398 if dy < [all...] |
/inkscape/src/display/ |
H A D | nr-filter-flood.cpp | 90 double dy = fp_cairo.min()[Geom::Y] - sa.min()[Geom::Y]; local 92 if( dy < 0.0 ) dy = 0.0; 97 cairo_rectangle(ct, dx, dy, overlap.width(), overlap.height() );
|
H A D | nr-filter-offset.cpp | 24 dx(0), dy(0) 47 double y = dy; 81 dy = amount; 86 Geom::Point offset(dx, dy);
|
H A D | nr-filter-offset.h | 37 double dx, dy; member in class:Inkscape::Filters::FilterOffset
|
H A D | nr-filter-convolve-matrix.h | 55 int dx, dy, kernelUnitLength; member in class:Inkscape::Filters::FilterConvolveMatrix
|
/inkscape/src/libdepixelize/priv/ |
H A D | optimization-kopf2011.h | 55 T dy[2]; variable 59 dy[0] = points[1].y - points[0].y; 60 dy[1] = points[3].y - points[2].y; 65 m[0] = dy[0] / dx[0]; 66 m[1] = dy[1] / dx[1]; 68 // It's easier to have a unified logic, then we'll fake dx and dy 69 dy[0] = points[1].x - points[0].x; 70 dy[1] = points[3].x - points[2].x; 75 m[0] = dy[0] / dx[0]; 76 m[1] = dy[ [all...] |
/inkscape/src/2geom/ |
H A D | rect.cpp | 132 double dx = 0, dy = 0; local 139 dy = rect.top() - p[Y]; 141 dy = p[Y] - rect.bottom(); 143 return dx*dx+dy*dy; 151 double dx = 0, dy = 0; local 158 dy = rect.top() - p[Y]; 160 dy = p[Y] - rect.bottom(); 162 return hypot(dx, dy);
|
H A D | circle.cpp | 168 Coord dy = l.vector().y(); local 175 Coord ix = (D*dy) / (dr*dr); 183 Coord signmod = dy < 0 ? -1 : 1; 185 Coord i1x = (D*dy + signmod * dx * sqrt_delta) / (dr*dr); 186 Coord i1y = (-D*dx + fabs(dy) * sqrt_delta) / (dr*dr); 189 Coord i2x = (D*dy - signmod * dx * sqrt_delta) / (dr*dr); 190 Coord i2y = (-D*dx - fabs(dy) * sqrt_delta) / (dr*dr);
|
/inkscape/src/ui/cache/ |
H A D | svg_preview_cache.cpp | 49 int dy = psize; local 51 dy = (dy - height)/2; 54 ibox.min() - Geom::IntPoint(dx, dy), Geom::IntPoint(psize, psize));
|
/inkscape/src/ |
H A D | sp-text.cpp | 73 this->readAttr( "dy" ); 439 // Adjust x/y, dx/dy 700 // readSingleAttribute(SP_ATTR_DY, node->attribute("dy")); 717 case SP_ATTR_DY: attr_vector = &attributes.dy; update_y = true; break; 755 writeSingleAttributeVector(node, "dy", attributes.dy); 780 for(std::vector<SVGLength>::iterator it = attributes.dy.begin(); it != attributes.dy.end(); ++it) { 816 return !attributes.x.empty() || !attributes.y.empty() || !attributes.dx.empty() || !attributes.dy.empty() || !attributes.rotate.empty(); 847 mergeSingleAttribute(&output->dy, parent_attr [all...] |
H A D | sp-radial-gradient.cpp | 181 double dx = d_user.x(), dy = d_user.y(); local 182 cairo_user_to_device_distance(ct, &dx, &dy); 187 double dl = hypot(dx, dy); 188 double tx = tolerance * dx / dl, ty = tolerance * dy / dl;
|
H A D | selection-chemistry.h | 111 void sp_selection_skew_relative (Inkscape::Selection *selection, Geom::Point const &align, double dx, double dy); 113 void sp_selection_move_relative (Inkscape::Selection *selection, double dx, double dy); 123 void sp_selection_move (Inkscape::Selection *selection, double dx, double dy); 124 void sp_selection_move_screen (Inkscape::Selection *selection, double dx, double dy);
|
/inkscape/src/libnrtype/ |
H A D | TextWrapper.h | 89 // adds dx or dy for the text added by the last AppendUTF8() call 109 void AddLetterSpacing(double dx, double dy, int g_st = -1, int g_en = -1);
|
/inkscape/src/helper/ |
H A D | geom.cpp | 672 double dy = y4-y1; local 674 double d2 = fabs(((x2 - x4) * dy - (y2 - y4) * dx)); 675 double d3 = fabs(((x3 - x4) * dy - (y3 - y4) * dx)); 684 k = dx*dx + dy*dy; 695 d2 = k * (da1*dx + da2*dy); 698 d3 = k * (da1*dx + da2*dy); 707 else d2 = calc_sq_distance(x2, y2, x1 + d2*dx, y1 + d2*dy); 711 else d3 = calc_sq_distance(x3, y3, x1 + d3*dx, y1 + d3*dy); 734 if(d3 * d3 <= m_distance_tolerance_square * (dx*dx + dy*d [all...] |
/inkscape/src/libcola/ |
H A D | straightener.cpp | 38 double dy=by-ay; local 40 if(fabs(dx)<0.0001&&fabs(dy)<0.0001) { 48 tx=(py-ay)/dy; 53 if(fabs(dy)<0.0001) { 59 ty=(py-ay)/dy;
|