Lines Matching defs:r0

110     // 2) The stroke is r0, equal for all edges, if preserve transforms is false
112 // -> The width and height of the geometric bounding box will therefore be (w0 - 2*0.5*r0) and (h0 - 2*0.5*r0)
130 // w1 and h1 will be negative when mirroring, but if so then e.g. w1-r0 won't make sense
144 gdouble r0 = sqrt(stroke_x*stroke_y); // r0 is redundant, used only for those cases where stroke_x = stroke_y
169 /* Initial area of the geometric bounding box: A0 = (w0-r0)*(h0-r0)
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)
178 gdouble A = -w0*h0 + r0*(w0 + h0);
179 gdouble B = -(w1 + h1) * r0*r0;
180 gdouble C = w1 * h1 * r0*r0;
182 g_message("stroke scaling error : %d, %f, %f, %f, %f, %f", preserve, r0, w0, h0, w1, h1);
187 // If w1 < 0 then the scale will be wrong if we just assume that scale_x = (w1 - r1)/(w0 - r0);
188 // Therefore we here need the absolute values of w0, w1, h0, h1, and r0, as taken care of earlier
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));
195 scale_x = (w1 - r0) / (w0 - r0);
196 scale_y = (h1 - r0) / (h0 - r0);
197 unbudge *= Geom::Translate (-flip_x * 0.5 * r0 * (scale_x - 1), -flip_y * 0.5 * r0 * (scale_y - 1));
286 // w1 and h1 will be negative when mirroring, but if so then e.g. w1-r0 won't make sense
349 // If w1 < 0 then the scale will be wrong if we just assume that scale_x = (w1 - r1)/(w0 - r0);
350 // Therefore we here need the absolute values of w0, w1, h0, h1, and r0, as taken care of earlier
406 // scale stroke by: sqrt (((w1-r0)/(w0-r0))*((h1-r0)/(h0-r0))) (for visual bboxes, see get_scale_transform_for_stroke)