Searched refs:w0 (Results 1 - 2 of 2) sorted by relevance

/inkscape/src/
H A Dsp-item-transform.cpp109 // 1) We start with a visual bounding box (w0, h0) which we want to transfer into another visual bounding box (w1, h1)
112 // -> The width and height of the geometric bounding box will therefore be (w0 - 2*0.5*r0) and (h0 - 2*0.5*r0)
118 gdouble w0 = bbox_visual.width(); // will return a value >= 0, as required further down the road local
134 // w0 and h0 will always be positive due to the definition of the width() and height() methods.
139 Geom::Affine direct = Geom::Scale(flip_x * w1 / w0, flip_y* h1 / h0); // Scaling of the visual bounding box
149 if ((fabs(w0 - stroke_x) < 1e-6) && (fabs(h0 - stroke_y) < 1e-6)) {
157 if ((fabs(w0 - stroke_x) < 1e-6) || w1 == 0) { // We have a vertical line at hand
160 unbudge *= Geom::Translate (-flip_x * 0.5 * (scale_x - 1.0) * w0, 0);
161 unbudge *= Geom::Translate ( flip_x * 0.5 * (w1 - w0), 0); // compensate for the fact that this operation cannot be performed
163 scale_x = w1/w0;
268 gdouble w0 = bbox_visual.width(); // will return a value >= 0, as required further down the road local
[all...]
/inkscape/share/extensions/
H A Dgcodetools.py1112 w0 = [p1[0]-p2[0], p1[1]-p2[1]]
1114 c1 = w0[0]*v[0] + w0[1]*v[1]
1116 return w0[0]*w0[0]+w0[1]*w0[1]

Completed in 199 milliseconds