/inkscape/share/extensions/ |
H A D | coloreffect.py | 180 def hue_2_rgb (self, v1, v2, h): 186 return v1 + (v2 - v1) * h 188 return v2 190 return v1 + (v2 - v1) * (4 - h) 201 v2 = l * (1 + s) 203 v2 = l + s - l*s 204 v1 = 2*l - v2 205 rgb[0] = self.hue_2_rgb (v1, v2, h*6 + 2.0) 206 rgb[1] = self.hue_2_rgb (v1, v2, h*6) 207 rgb[2] = self.hue_2_rgb (v1, v2, [all...] |
H A D | voronoi2svg.py | 93 def intersectLineSegment(self,line,v1,v2): 95 s2 = self.dot(line,v2) - line[2] 99 tmp = self.dot(line,v1)-self.dot(line,v2) 102 u = (line[2]-self.dot(line,v2))/tmp 104 return (u*v1[0]+v*v2[0],u*v1[1]+v*v2[1],True) 132 v2 = vertices[edge[2]] 133 interpoints.append((v2[0],v2[1],False)) 348 v2 [all...] |
H A D | simpletransform.py | 69 a11,a21,a12,a22,v1,v2=result.group(2).replace(',',' ').split() 70 matrix=[[float(a11),float(a12),float(v1)], [float(a21),float(a22),float(v2)]] 103 v2 = M1[1][0]*M2[0][2] + M1[1][1]*M2[1][2] + M1[1][2] 104 return [[a11,a12,v1],[a21,a22,v2]]
|
H A D | cubicsuperpath.py | 88 v2=[O[0]+cos(angle)- v *sin(angle),O[1]+sin(angle)+ v *cos(angle)] 89 p.append([v1,pt,v2])
|
H A D | interp.py | 23 def interpcoord(v1,v2,p): 24 return v1+((v2-v1)*p)
|
H A D | measure.py | 69 def interpcoord(v1,v2,p): 70 return v1+((v2-v1)*p)
|
H A D | gcodetools.py | 1770 v2 = b.end - b.st 1771 x = v1.x*v2.y - v2.x*v1.y 1779 if 0<=(self.st.x-b.st.x)/v2.x<=1 : res.append(self.st) 1780 if 0<=(self.end.x-b.st.x)/v2.x<=1 : res.append(self.end) 1784 if 0<=(self.st.y-b.st.y)/v2.y<=1 : res.append(self.st) 1785 if 0<=(self.end.y-b.st.y)/v2.y<=1 : res.append(self.end)
|
/inkscape/src/2geom/numeric/ |
H A D | vector.h | 140 bool operator== (BaseVectorImpl const& v1, BaseVectorImpl const& v2) argument 142 if (v1.size() != v2.size()) return false; 146 if (v1[i] != v2[i]) return false; 175 double dot(BaseVectorImpl const& v1, BaseVectorImpl const& v2) argument 178 gsl_blas_ddot(v1.get_gsl_vector(), v2.get_gsl_vector(), &result); 340 void swap(Vector & v1, Vector & v2); 342 void swap_any(Vector & v1, Vector & v2); 349 void swap(Vector & v1, Vector & v2) argument 351 assert(v1.size() == v2.size()); 353 swap(v1.m_vector, v2 357 swap_any(Vector & v1, Vector & v2) argument 554 swap_view(VectorView & v1, VectorView & v2) argument [all...] |
/inkscape/src/ |
H A D | color.cpp | 363 hue_2_rgb (float v1, float v2, float h) argument 368 if (h < 1) return v1 + (v2 - v1) * h; 369 if (h < 3) return v2; 370 if (h < 4) return v1 + (v2 - v1) * (4 - h); 385 float v2; local 387 v2 = l * (1 + s); 389 v2 = l + s - l*s; 391 float v1 = 2*l - v2; 393 rgb[0] = hue_2_rgb (v1, v2, h*6 + 2.0); 394 rgb[1] = hue_2_rgb (v1, v2, [all...] |
H A D | line-geometry.cpp | 98 /* The coordinates of w with respect to the basis {v1, v2} */ 99 std::pair<double, double> coordinates (Geom::Point const &v1, Geom::Point const &v2, Geom::Point const &w) argument 101 double det = determinant (v1, v2);; 107 double lambda1 = determinant (w, v2) / det; 112 /* whether w lies inside the sector spanned by v1 and v2 */ 113 bool lies_in_sector (Geom::Point const &v1, Geom::Point const &v2, Geom::Point const &w) argument 115 std::pair<double, double> coords = coordinates (v1, v2, w); 119 return (Geom::dot (v1, v2) < 0);
|
H A D | line-geometry.h | 67 std::pair<double, double> coordinates (Geom::Point const &v1, Geom::Point const &v2, Geom::Point const &w); 68 bool lies_in_sector (Geom::Point const &v1, Geom::Point const &v2, Geom::Point const &w);
|
H A D | box3d.cpp | 651 Geom::Point v2(l2.direction()); 653 v2.normalize(); 655 return (v1[Geom::X]*v2[Geom::Y] - v1[Geom::Y]*v2[Geom::X] > 0); 1128 Geom::Point v2(c2 - vp); 1130 ret = static_cast<int>(Box3D::lies_in_sector(v1, v2, w));
|
/inkscape/src/ui/widget/ |
H A D | spin-slider.cpp | 197 double v1 = 0.0, v2 = 0.0; local 199 v1 = v2 = Glib::Ascii::strtod(toks[0]); 201 v2 = Glib::Ascii::strtod(toks[1]); 207 _s2.get_adjustment()->set_value(v2); 210 _s2.get_adjustment().set_value(v2);
|
H A D | spin-scale.cpp | 174 double v1 = 0.0, v2 = 0.0; local 176 v1 = v2 = Glib::Ascii::strtod(toks[0]); 178 v2 = Glib::Ascii::strtod(toks[1]); 183 _s2.get_adjustment()->set_value(v2);
|
H A D | gimpcolorwheel.c | 999 #define LERP(a, b, v1, v2, i) (((v2) - (v1) != 0) \ 1000 ? ((a) + ((b) - (a)) * ((i) - (v1)) / ((v2) - (v1))) \
|
/inkscape/src/2geom/ |
H A D | line.cpp | 257 Point v2 = other.vector(); local 258 Coord cp = cross(v1, v2); 262 Coord t1 = cross(odiff, v2) / cp; 317 Point const &v2, Point const &o2) 319 Coord cp = cross(v1, v2); 325 c.ta = cross(odiff, v2) / cp; 316 intersection_impl(Point const &v1, Point const &o1, Point const &v2, Point const &o2) argument
|
H A D | bezier-curve.cpp | 384 std::vector<Point> v2 = v1; local 386 /* Compute the right subdivision directly in v1 and the left one in v2. 407 * 0 ? ? ? -> write 0 to v2[1] 415 * 0 ? ? -> write 0 to v2[2] 423 * 0 ? -> write 0 to v2[3] 427 * and we write the last value needed for the left edge in v2[4]. 434 v2[i] = v1[0]; 438 bezier_length_internal(v2, 0.5 * tolerance, level + 1);
|
/inkscape/src/libavoid/ |
H A D | graph.h | 49 EdgeInf(VertInf *v1, VertInf *v2, const bool orthogonal = false);
|
H A D | graph.cpp | 43 EdgeInf::EdgeInf(VertInf *v1, VertInf *v2, const bool orthogonal) argument 52 _v2(v2), 56 COLA_ASSERT(v1 && v2);
|
H A D | makepath.cpp | 129 Point v2(p3.x - p2.x, p3.y - p2.y); 131 return fabs(atan2(CrossLength(v1, v2), Dot(v1, v2)));
|
/inkscape/src/widgets/ |
H A D | arc-toolbar.cpp | 63 static void sp_arctb_sensitivize( GObject *tbl, double v1, double v2 ) 68 if (v1 == 0 && v2 == 0) {
|
/inkscape/src/extension/internal/ |
H A D | emf-print.cpp | 805 Geom::Point v1,v2; local 827 v2 = unit_vector(P1_lead - P1 ); 828 if(Geom::are_near(dot(v1,v2), 1.0, 1e-5)){ // P1 is within a straight line 862 Geom::Point v1,v2; local 888 v2 = v1; 893 if(!Geom::are_near(dot(v1,v2), 0.0, 2e-3))break; 915 Geom::Point v2 = Geom::Point(1,0) * Geom::Rotate(-angle); // unit horizontal side (sign change because Y increases DOWN) local 917 if( Geom::are_near(dot(v1,v2), 1.0, 1e-5)){ stat = 1; } 918 else if(Geom::are_near(dot(v1,v2),-1.0, 1e-5)){ stat = 2; } 962 Geom::Point v2 local [all...] |
H A D | metafile-print.cpp | 158 /* opacity weighting of two colors as float. v1 is the color, op is its opacity, v2 is the background color */ 159 inline float opweight(float v1, float v2, float op) argument 161 return v1 * op + v2 * (1.0 - op);
|
/inkscape/src/ui/dialog/ |
H A D | filter-effects-dialog.cpp | 284 double v2 = _s2.get_value(); local 288 v2 = (int)v2; 291 return Glib::Ascii::dtostr(v1) + " " + Glib::Ascii::dtostr(v2);
|
/inkscape/src/libuemf/ |
H A D | upmf.c | 5399 int U_PMF_CORE1_get(const char *contents, void *v1, void *v2, void *v3, void *v4, void *v5, void *v6, const char **vR){ argument 5401 if(v2){ U_PMF_MEMCPY_SRCSHIFT(v2, &contents, 4);
|