/inkscape/src/helper/ |
H A D | geom-nodetype.cpp | 36 double this_angle_L2 = Geom::L2(deriv_1); 37 double next_angle_L2 = Geom::L2(deriv_2); 38 double both_angles_L2 = Geom::L2(deriv_1 + deriv_2);
|
/inkscape/src/ |
H A D | line-snapper.cpp | 44 Geom::Coord const dist = Geom::L2(p_proj - p.getPoint()); 51 Geom::Coord const dist_p1 = Geom::L2(p1 - p.getPoint()); 77 Geom::Coord dist = Geom::L2(origin_proj - p.getPoint()); 117 Geom::Coord dist = Geom::L2(p_proj - origin); // distance from circle origin to constraint line 121 _addSnappedPoint(isr, p_proj, Geom::L2(pp - p_proj), p.getSourceType(), p.getSourceNum(), true); 126 Geom::Coord d = Geom::L2(gridguide_line.versor()); // length of versor, needed to normalize the versor 129 _addSnappedPoint(isr, p_proj + v, Geom::L2(p.getPoint() - (p_proj + v)), p.getSourceType(), p.getSourceNum(), true); 130 _addSnappedPoint(isr, p_proj - v, Geom::L2(p.getPoint() - (p_proj - v)), p.getSourceType(), p.getSourceNum(), true); 149 const Geom::Coord dist = Geom::L2(t - p.getPoint());
|
H A D | snapped-curve.cpp | 101 Geom::Coord primaryDist = use_this_as_primary ? Geom::L2(best_p - this->getPoint()) : Geom::L2(best_p - curve.getPoint()); 102 Geom::Coord secondaryDist = use_this_as_primary ? Geom::L2(best_p - curve.getPoint()) : Geom::L2(best_p - this->getPoint()); 152 Geom::L2(best_p - this->getPoint()), this->getTolerance(), this->getAlwaysSnap(), true, false, true, 153 Geom::L2(best_p - line.getPoint()), line.getTolerance(), line.getAlwaysSnap()); 156 Geom::L2(best_p - line.getPoint()), line.getTolerance(), line.getAlwaysSnap(), true, false, true, 157 Geom::L2(best_p - this->getPoint()), this->getTolerance(), this->getAlwaysSnap());
|
H A D | snapped-line.cpp | 81 Geom::Coord primaryDist = use_this_as_primary ? Geom::L2(inters_pt - this->getPoint()) : Geom::L2(inters_pt - line.getPoint()); 82 Geom::Coord secondaryDist = use_this_as_primary ? Geom::L2(inters_pt - line.getPoint()) : Geom::L2(inters_pt - this->getPoint()); 162 Geom::Coord primaryDist = use_this_as_primary ? Geom::L2(inters_pt - this->getPoint()) : Geom::L2(inters_pt - line.getPoint()); 163 Geom::Coord secondaryDist = use_this_as_primary ? Geom::L2(inters_pt - line.getPoint()) : Geom::L2(inters_pt - this->getPoint());
|
H A D | rubberband.cpp | 89 if (!_points.empty() && Geom::L2(next-_points.back()) > 0.5) { 91 int subdiv = 2 * (int) round(Geom::L2(next-prev) + 0.5);
|
H A D | transf_mat_3x4.h | 42 double rad = Geom::L2(pt);
|
H A D | pure-transform.cpp | 69 snapped_point.setPointerDistance(Geom::L2(pointer - (*i).getPoint())); 127 * grid line, then we cannot use "metric = Geom::L2(result)". Therefore the 195 snapped_point.setSnapDistance(Geom::L2(scale_metric)); 333 Geom::Coord r = Geom::L2(b); // the radius of the circular constraint 343 if (Geom::L2(b) < 1e-9) { // points too close to the rotation center will not move. Don't try to snap these
|
H A D | object-snapper.cpp | 296 Geom::Coord dist = Geom::L2(target_pt - p.getPoint()); // Default: free (unconstrained) snapping 300 if (Geom::L2(target_pt - c.projection(target_pt)) > 1e-9) { 305 dist = Geom::L2(target_pt - p_proj_on_constraint); 340 Geom::Coord dist = Geom::L2(target_pt - p_proj); // distance from node to the guide 341 Geom::Coord dist2 = Geom::L2(p - p_proj); // distance from projection of node on the guide, to the mouse location 592 if (Geom::L2(point - (*i).getPoint()) < 1e-4) { 654 Geom::Coord dist = Geom::L2(p.getPoint() - p_inters);
|
H A D | line-geometry.h | 54 return (Geom::L2 (pt2 - pt1) < epsilon);
|
H A D | snapper.h | 112 Geom::Coord l = Geom::L2(v_orig);
|
H A D | sp-star.cpp | 265 return ((1/Geom::L2(n - o)) * Geom::Point ((n - o)[Geom::Y], (o - n)[Geom::X])); 333 gdouble prev_len = Geom::L2 (prev - o); 334 gdouble next_len = Geom::L2 (next - o);
|
H A D | unclump.cpp | 99 double dist_r = (Geom::L2 (c2 - c1) - r1 - r2); 157 dists.push_back (Geom::L2 (c1_points[i] - c2_points[j]));
|
/inkscape/src/live_effects/ |
H A D | lpe-circle_with_radius.cpp | 49 double radius = Geom::L2(pt - center);
|
H A D | lpe-offset.cpp | 54 double r = L2(dir); 69 double offset = L2(A - offset_pt);
|
H A D | lpe-circle_3pts.cpp | 48 double radius = L2(M - A);
|
H A D | lpe-parallel.cpp | 125 double lambda = L2(s - lpe->offset_pt) * sgn(dot(s - lpe->offset_pt, lpe->dir)); 140 double lambda = L2(s - lpe->offset_pt) * sgn(dot(s - lpe->offset_pt, lpe->dir));
|
H A D | lpe-simplify.cpp | 133 gdouble size = Geom::L2(bbox->dimensions()); 137 size = Geom::L2(Geom::bounds_fast(original_pathv)->dimensions());
|
H A D | lpe-copy_rotate.cpp | 103 dist_angle_handle = L2(B - A); 456 lpe->dist_angle_handle = L2(lpe->B - lpe->A); 458 lpe->dist_angle_handle = L2(p - lpe->origin); 476 lpe->dist_angle_handle = L2(lpe->B - lpe->A); 478 lpe->dist_angle_handle = L2(p - lpe->origin);
|
/inkscape/src/ui/tools/ |
H A D | calligraphic-tool.cpp | 265 if ( Geom::L2(force) < DYNA_EPSILON || (this->vel_max < DYNA_VEL_START && Geom::L2(force) < DYNA_EPSILON_START)) { 274 if (Geom::L2(this->vel) > this->vel_max) 275 this->vel_max = Geom::L2(this->vel); 299 gdouble const mag_vel = Geom::L2(this->vel); 325 double angle_delta = Geom::L2(Geom::Point (cos (new_ang), sin (new_ang)) - this->ang); 326 if ( angle_delta / Geom::L2(this->vel) > 4000 ) { 333 // g_print ("force %g acc %g vel_max %g vel %g a1 %g a2 %g new_ang %g\n", Geom::L2(force), Geom::L2(dc->acc), dc->vel_max, Geom::L2(d [all...] |
H A D | eraser-tool.cpp | 213 if ( Geom::L2(force) < ERASER_EPSILON || (this->vel_max < ERASER_VEL_START && Geom::L2(force) < ERASER_EPSILON_START)) { 222 if (Geom::L2(this->vel) > this->vel_max) 223 this->vel_max = Geom::L2(this->vel); 247 gdouble const mag_vel = Geom::L2(this->vel); 273 double angle_delta = Geom::L2(Geom::Point (cos (new_ang), sin (new_ang)) - this->ang); 274 if ( angle_delta / Geom::L2(this->vel) > 4000 ) { 281 // g_print ("force %g acc %g vel_max %g vel %g a1 %g a2 %g new_ang %g\n", Geom::L2(force), Geom::L2(dc->acc), dc->vel_max, Geom::L2(d [all...] |
H A D | tweak-tool.cpp | 409 double x = Geom::L2(a->midpoint() - p)/radius; 422 double x = Geom::L2(a->midpoint() - p)/radius; 438 double x = Geom::L2(a->midpoint() - p)/radius; 451 double x = Geom::L2(a->midpoint() - p)/radius; 464 double x = Geom::L2(a->midpoint() - p)/radius; 477 double x = Geom::L2(a->midpoint() - p)/radius; 560 if (Geom::L2(vector) != 0) { 561 vector = 1/Geom::L2(vector) * vector; 784 double vl = Geom::L2(pdiff); 802 pos = Geom::L2( [all...] |
/inkscape/src/2geom/ |
H A D | point.cpp | 151 return are_near(L2(p), 1.0, eps); 231 return A + dir * Rotate(k * 2.0 * M_PI / (double)n) * L2(diff);
|
H A D | d2-sbasis.cpp | 42 SBasis L2(D2<SBasis> const & a, unsigned k) { return sqrt(dot(a, a), k); } function in namespace:Geom 208 if (i==(pwsbin.segs.size()-1) || L2(pwsbin.segs[i].at1()- pwsbin.segs[i+1].at0()) > tol){ 266 if ( L2(a-aj) < tol ) { 271 if ( L2(b-bj) < tol ) { 291 if ( L2(comp.firstValue()-comp.lastValue()) < tol ){
|
/inkscape/src/ui/widget/ |
H A D | rotateable.cpp | 93 double dist = Geom::L2(Geom::Point(event->x, event->y) - Geom::Point(drag_started_x, drag_started_y));
|
/inkscape/src/livarot/ |
H A D | PathStroke.cpp | 24 double length = L2(value); 164 double prevLe = Geom::L2(prevD); 165 double nextLe = Geom::L2(nextD); 199 nextLe = Geom::L2(nextD); 219 nextLe = Geom::L2(nextD);
|