/inkscape/src/live_effects/ |
H A D | lpe-powerstroke.cpp | 45 /** Find the point where two straight lines cross. 50 Coord denom = cross(vector_a, vector_b); 52 Coord t = (cross(vector_b, origin_a) + cross(origin_b, vector_b)) / denom; 77 double cross = p[Y]*q[X] - p[X]*q[Y]; local 78 double a = -q[Y]/cross; 79 double b = q[X]/cross; 80 double c = (O[X]*q[Y] - O[Y]*q[X])/cross; 82 double d = p[Y]/cross; 83 double e = -p[X]/cross; 402 Geom::Crossings cross = crossings(bzr1, bzr2); local 533 Geom::Crossings cross = crossings(bzr1, bzr2); local [all...] |
H A D | lpe-extrude.cpp | 44 return Geom::are_near(cross(a,b), 0., 0.5);
|
H A D | lpe-mirror_symmetry.cpp | 245 position = Geom::sgn(Geom::cross(e - s, middle - s)); 264 position = Geom::sgn(Geom::cross(e - s, original.finalPoint() - s));
|
H A D | lpe-sketch.cpp | 349 double r = std::pow(v_t.length(), 3) / cross(v_t, a_t);
|
H A D | lpe-copy_rotate.cpp | 183 position = Geom::sgn(Geom::cross(divider[1].finalPoint() - divider[0].finalPoint(), side_checker - divider[0].finalPoint())); 194 position = Geom::sgn(Geom::cross(divider[1].finalPoint() - divider[0].finalPoint(), original.finalPoint() - divider[0].finalPoint()));
|
/inkscape/src/2geom/ |
H A D | line.cpp | 109 c = cross(_initial, _final); 258 Coord cp = cross(v1, v2); 262 Coord t1 = cross(odiff, v2) / cp; 263 Coord t2 = cross(odiff, v1) / cp; 319 Coord cp = cross(v1, v2); 325 c.ta = cross(odiff, v2) / cp; 326 c.tb = cross(odiff, v1) / cp;
|
H A D | sbasis-geometric.cpp | 368 Piecewise<SBasis> k = cross(derivative(unitv),unitv); 534 const double ai = cross(final, initial); 616 * value, speed, and cross(acceleration,speed) 619 * Recall that K=1/R=cross(acceleration,speed)/|speed|^3. 641 double dM1xdM0=cross(dM1,dM0); 646 double lbda02 = 6.*cross(M1-M0,dM0)/d2M0xdM0; 647 double lbda12 =-6.*cross(M1-M0,dM1)/d2M1xdM1; 658 c0 = 3*cross(M1-M0,dM0)/dM1xdM0; 660 c1 = -3*cross(M1-M0,dM1)/dM1xdM0; 722 double d2M0xdM0 = cross(d2M [all...] |
H A D | point.h | 361 /** @brief Compute the 2D cross product. 366 inline Coord cross(Point const &a, Point const &b) function in namespace:Geom 399 return are_near( cross(p3, p2) - cross(p3, p1) + cross(p2, p1), 0, eps);
|
H A D | convex-hull.cpp | 110 return cross(b-a, c-a) > 0; 157 a += cross(_boundary[i], _boundary[i+1]); 159 a += cross(_boundary.back(), _boundary.front()); 294 return cross((p1 - p0), (p2 - p0)); 684 const double ai = cross(boundary[j], boundary[i]);
|
H A D | point.cpp | 165 return std::atan2(cross(a,b), dot(a,b));
|
H A D | conic_section_clipper_impl.cpp | 206 return (cross(p2, p3) - cross(p1, p3) + cross(p1, p2)); 441 // if the conic does not cross any line passing through a rectangle edge or 481 // through the rectangle edges but it does not cross any rectangle edge
|
H A D | circle.cpp | 149 Coord D = cross(l.initialPoint(), l.finalPoint()); 169 Coord D = cross(l.initialPoint() - _center, l.finalPoint() - _center);
|
H A D | d2-sbasis.cpp | 144 Piecewise<SBasis> cross(Piecewise<D2<SBasis> > const &a, function in namespace:Geom 153 result.push(cross(aa.segs[i],bb.segs[i]),aa.cuts[i+1]);
|
H A D | geom.cpp | 375 const double ai = cross(p[j], p[i]);
|
H A D | ellipse.cpp | 231 // 1/2 of an arc, i.e. the cross product of the center -> initial point 237 double ifcp = cross(fv, iv); 239 if (ifcp != 0 && (sgn(cross(fv, innerv)) != sgn(ifcp) || 240 sgn(cross(iv, innerv)) != sgn(-ifcp))) 245 //cross(-iv, fv) && large_arc_flag 249 // For clarity, let's assume that Y grows up. Then the cross product 253 // cross(?, v) > 0 255 // cross(?, v) < 0 264 // cross(_center - ip, fp - _center) < 0 xor large_arc flag 266 // cross( [all...] |
H A D | path-intersection.cpp | 72 * and the cross-product of the deltas (a useful byproduct). The return value 80 // Cramer's rule as cross products 84 det = cross(Ad, Bd); 92 if( fabs(det_rel) < 1e-12 ) { // If the cross product is NEARLY zero, 104 tA = cross(d, Bd) * detinv; 105 tB = cross(d, Ad) * detinv;
|
H A D | d2.h | 381 /** @brief Calculates the 'cross product' or 'outer product' of \c a and \c b 386 cross(D2<T> const & a, D2<T> const & b) { function in namespace:Geom 512 Piecewise<SBasis> cross(Piecewise<D2<SBasis> > const &a, Piecewise<D2<SBasis> > const &b);
|
H A D | conicsec.cpp | 693 return (cross(p2, p3) - cross(p1, p3) + cross(p1, p2));
|
/inkscape/src/ |
H A D | sp-conn-end.cpp | 75 Geom::CrossingSet cross = crossings(conn_pv, curve_pv); local 79 for (Geom::CrossingSet::const_iterator i = cross.begin(); i != cross.end(); ++i) {
|
/inkscape/src/helper/ |
H A D | geom-pathstroke.cpp | 26 Coord denom = cross(vector_a, vector_b); 28 Coord t = (cross(vector_b, origin_a) + cross(origin_b, vector_b)) / denom; 49 Piecewise<SBasis> k = cross(derivative(unitv),unitv); 78 if( Geom::cross(curve[0]-curve[1], curve[1]-curve[2]) < 0 ) { 89 if( Geom::cross(curve[1]-curve[2], curve[2]-curve[3]) < 0 ) { 584 if (Geom::cross(start_ray.versor(), end_ray.versor()) < 0) { 666 Geom::Crossings cross = Geom::crossings(res, temp); local 669 if (cross.size() == 1) solution = 0; 670 else if (cross [all...] |
/inkscape/src/livarot/ |
H A D | sweep-tree.cpp | 120 y = cross(bNorm, nNorm); 122 y = cross(nNorm, bNorm); 348 double ang = cross(bNorm, nNorm); 387 ang = cross(bNorm, nNorm); 429 ang = cross(bNorm, nNorm);
|
H A D | PathConversion.cpp | 719 Geom::Point cse(dot(ca, se), cross(ca, se)); 757 dr[1] = cross(ca, csd); 866 const double sC = fabs(cross(se, isD)) / dC; 867 const double eC = fabs(cross(se, ieD)) / dC; 919 double s = fabs(cross(pe, ps)); 1007 const double sC = fabs(cross(se, isD)) / dC; 1008 const double eC = fabs(cross(se, ieD)) / dC; 1044 const double s = fabs(cross(pe, ps)); 1128 const double sC = fabs(cross(se, isD)) / dC; 1129 const double eC = fabs(cross(s [all...] |
H A D | PathStroke.cpp | 295 double angSi = cross(prev, next); 419 double angSi = cross(prev, next); 447 double c2=cross(next, biss); 506 double s2 = cross(nnor, biss); 563 double angSi = cross(prev, next); 617 double s2 = cross(nnor, biss); 670 double c2=cross(biss, next); 722 sia = cross(nE, nS);
|
H A D | ShapeSweep.cpp | 35 * rounding: to do the rounding, we need to find which edges cross the surrounding of the rounded points (at 1741 double ang = cross (ldir, rdir); 1779 srDot = cross(rdir, sDiff); 1780 erDot = cross(rdir, eDiff); 1783 slDot = cross(ldir, sDiff); 1784 elDot = cross(ldir, eDiff); 2092 double cote = cross(adir, diff); 2566 srDot = cross(rdir, sDiff); 2567 erDot = cross(rdir, eDiff); 2573 slDot = cross(ldi [all...] |
H A D | PathOutline.cpp | 1116 rad = -l * (dot(dder,dder)) / (cross(dder, ddder)); 1125 rad = -l * (dot(der,der)) / (cross(der, dder)); 1164 rad = -l * (dot(der,der)) / (cross(der, dder)); 1188 const double angSi = cross (stNor, enNor);
|