Lines Matching defs:r1
124 // The new visual bounding box will have a stroke r1
155 gdouble r1;
170 * Desired area of the geometric bounding box: A1 = (w1-r1)*(h1-r1)
171 * This is how the stroke should scale: r1^2 / A1 = r0^2 / A0
174 * r1^2 * (w0-r0) * (h0-r0) = r0^2 * (w1-r1) * (h1-r1)
176 * This is a quadratic equation in r1, of which the roots can be found using the ABC formula
184 r1 = -C/B;
186 r1 = fabs((-B - sqrt(B*B - 4*A*C))/(2*A));
187 // If w1 < 0 then the scale will be wrong if we just assume that scale_x = (w1 - r1)/(w0 - r0);
189 scale_x = (w1 - r1)/(w0 - r0);
190 scale_y = (h1 - r1)/(h0 - r0);
192 unbudge *= Geom::Translate (-flip_x * 0.5 * (r0 * scale_x - r1), -flip_y * 0.5 * (r0 * scale_y - r1));
349 // If w1 < 0 then the scale will be wrong if we just assume that scale_x = (w1 - r1)/(w0 - r0);