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

/inkscape/share/extensions/
H A Dcoloreffect.py180 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 Dvoronoi2svg.py93 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 Dsimpletransform.py69 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 Dcubicsuperpath.py88 v2=[O[0]+cos(angle)- v *sin(angle),O[1]+sin(angle)+ v *cos(angle)]
89 p.append([v1,pt,v2])
H A Dinterp.py23 def interpcoord(v1,v2,p):
24 return v1+((v2-v1)*p)
H A Dmeasure.py69 def interpcoord(v1,v2,p):
70 return v1+((v2-v1)*p)
H A Dgcodetools.py1770 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 Dvector.h140 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 Dcolor.cpp363 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 Dline-geometry.cpp98 /* 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 Dline-geometry.h67 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 Dbox3d.cpp651 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 Dspin-slider.cpp197 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 Dspin-scale.cpp174 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 Dgimpcolorwheel.c999 #define LERP(a, b, v1, v2, i) (((v2) - (v1) != 0) \
1000 ? ((a) + ((b) - (a)) * ((i) - (v1)) / ((v2) - (v1))) \
/inkscape/src/2geom/
H A Dline.cpp257 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 Dbezier-curve.cpp384 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 Dgraph.h49 EdgeInf(VertInf *v1, VertInf *v2, const bool orthogonal = false);
H A Dgraph.cpp43 EdgeInf::EdgeInf(VertInf *v1, VertInf *v2, const bool orthogonal) argument
52 _v2(v2),
56 COLA_ASSERT(v1 && v2);
H A Dmakepath.cpp129 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 Darc-toolbar.cpp63 static void sp_arctb_sensitivize( GObject *tbl, double v1, double v2 )
68 if (v1 == 0 && v2 == 0) {
/inkscape/src/extension/internal/
H A Demf-print.cpp805 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 Dmetafile-print.cpp158 /* 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 Dfilter-effects-dialog.cpp284 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 Dupmf.c5399 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);

Completed in 830 milliseconds