/inkscape/src/ |
H A D | sp-item-transform.cpp | 124 // The new visual bounding box will have a stroke r1 155 gdouble r1; local 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 [all...] |
H A D | unclump.cpp | 95 double r1 = 0.5 * (wh1[Geom::X] + (wh1[Geom::Y] - wh1[Geom::X]) * (a1/(M_PI/2))); local 99 double dist_r = (Geom::L2 (c2 - c1) - r1 - r2);
|
H A D | sp-star.cpp | 57 this->readAttr( "sodipodi:r1" ); 76 sp_repr_set_svg_double(repr, "sodipodi:r1", this->r[0]); 469 sp_star_position_set (SPStar *star, gint sides, Geom::Point center, gdouble r1, gdouble r2, gdouble arg1, gdouble arg2, bool isflat, double rounded, double randomized) argument 476 star->r[0] = MAX (r1, 0.001); 481 star->r[1] = CLAMP( r1*cos(M_PI/sides) ,0.0, star->r[0] );
|
H A D | desktop.cpp | 753 Geom::Point r1 = w2d(r.max()); local 756 p[Geom::X] <= r1[Geom::X] && 757 p[Geom::Y] >= r1[Geom::Y] && 762 return (r0 + r1) / 2;
|
/inkscape/src/2geom/ |
H A D | line.cpp | 331 OptCrossing intersection_impl(Ray const& r1, Line const& l2, unsigned int i) argument 336 intersection_impl(r1.vector(), r1.origin(), 349 if (are_near(r1.origin(), l2)) { 457 OptCrossing intersection(Ray const& r1, Ray const& r2) argument 460 detail::intersection_impl( r1.vector(), r1.origin(), 477 if ( are_near(r1.origin(), r2) || are_near(r2.origin(), r1) ) 479 if ( are_near(r1 [all...] |
H A D | ray.h | 137 bool are_same(Ray const& r1, Ray const& r2, double eps = EPSILON) { argument 138 return are_near(r1.vector(), r2.vector(), eps) 139 && are_near(r1.origin(), r2.origin(), eps); 142 // evaluate the angle between r1 and r2 rotating r1 in cw or ccw direction on r2 145 double angle_between(Ray const& r1, Ray const& r2, bool cw = true) { argument 146 double angle = angle_between(r1.vector(), r2.vector()); 155 * @a r1 is rotated half the way to @a r2 in either clockwise or counter-clockwise direction. 161 * - If @a cw is set to @c true, the returned ray will equal the passed rays @a r1 and @a r2. 167 Ray make_angle_bisector_ray(Ray const& r1, Ra argument [all...] |
H A D | intersection-graph.cpp | 283 PathVector r1, r2; local 284 r1 = getAminusB(); 286 std::copy(r2.begin(), r2.end(), std::back_inserter(r1)); 287 return r1;
|
H A D | line.h | 533 OptCrossing intersection_impl(Ray const& r1, Line const& l2, unsigned int i); 544 OptCrossing intersection(Ray const& r1, Line const& l2) argument 546 return detail::intersection_impl(r1, l2, 0); 576 OptCrossing intersection(Ray const& r1, LineSegment const& ls2) argument 578 return detail::intersection_impl(ls2, r1, 1); 584 OptCrossing intersection(Ray const& r1, Ray const& r2);
|
H A D | sbasis-geometric.cpp | 248 double r1 = (k<r_eqn1.size())? r_eqn1.at(k).at1() : 0; local 256 // a1*x(1)+b1*y(1)=r1 & 2*a1*a(1)+2*b1*b(1)=rr1 259 a1 = r1/dot(v1,V.at1())*v1[0]-rr1/2*v1[1]; 260 b1 = r1/dot(v1,V.at1())*v1[1]+rr1/2*v1[0];
|
/inkscape/src/ui/tools/ |
H A D | star-tool.cpp | 391 Geom::Coord const r1 = Geom::L2(d); member in class:Inkscape::UI::Tools::Geom 399 sp_star_position_set(this->star, this->magnitude, p0, r1, r1 * this->proportion, 403 Inkscape::Util::Quantity q = Inkscape::Util::Quantity(r1, "px");
|
/inkscape/src/widgets/ |
H A D | star-toolbar.cpp | 137 gdouble r1 = 1.0; local 139 sp_repr_get_double(repr, "sodipodi:r1", &r1); 141 if (r2 < r1) { 143 r1*gtk_adjustment_get_value(adj)); 145 sp_repr_set_svg_double(repr, "sodipodi:r1", 327 } else if ((!strcmp(name, "sodipodi:r1") || !strcmp(name, "sodipodi:r2")) && (!isFlatSided) ) { 329 gdouble r1 = 1.0; local 331 sp_repr_get_double(repr, "sodipodi:r1", &r1); [all...] |
/inkscape/src/extension/internal/filter/ |
H A D | color.h | 623 std::ostringstream r1; local 638 r1 << ((color1 >> 24) & 0xff); 680 "</filter>\n", a1.str().c_str(), r1.str().c_str(), g1.str().c_str(), b1.str().c_str(), swap1.str().c_str(),
|
/inkscape/src/helper/ |
H A D | geom.cpp | 540 Geom::Point r1 = pointlist[0]; local 542 Geom::Point prev_r1 = r1; 543 r1 = pointlist[i]; 544 Geom::LineSegment ls(prev_r1, r1);
|
H A D | geom-pathstroke.cpp | 296 double r1 = circle1.radius(); local 298 double delta_r = r2 - r1; 335 circle1 = Geom::Circle( c1 - dr*n1, r1-dr );
|
/inkscape/src/libavoid/ |
H A D | connector.cpp | 1039 static bool pointRepLessThan(PointRep *r1, PointRep *r2) argument 1041 size_t r1less = r1->inner_set.size();
|
/inkscape/src/extension/dbus/ |
H A D | document-interface.cpp | 414 sp_repr_set_int(newNode, "sodipodi:r1", radius); 427 int r1, int r2, int sides, gdouble rounded, 435 sp_repr_set_int(newNode, "sodipodi:r1", r1); 426 document_interface_star(DocumentInterface *doc_interface, int cx, int cy, int r1, int r2, int sides, gdouble rounded, gdouble arg1, gdouble arg2, GError **error) argument
|
/inkscape/src/ui/widget/ |
H A D | gimpcolorwheel.c | 1017 gint x1, y1, r1, g1, b1; /* First vertex in scanline order */ local 1050 get_color (priv->h, 1.0, 1.0, &r1, &g1, &b1); 1073 SWAP (r1, r3, t); 1082 SWAP (r1, r2, t); 1104 rl = LERP (r1, r2, y1, y2, y_interp); 1119 rr = LERP (r1, r3, y1, y3, y_interp);
|
/inkscape/src/extension/internal/pdfinput/ |
H A D | svg-builder.cpp | 774 double x1, y1, r1, x2, y2, r2; local 775 radial_shading->getCoords(&x1, &y1, &r1, &x2, &y2, &r2);
|