Searched refs:cross (Results 1 - 25 of 38) sorted by relevance

12

/inkscape/src/live_effects/
H A Dlpe-powerstroke.cpp45 /** 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 Dlpe-extrude.cpp44 return Geom::are_near(cross(a,b), 0., 0.5);
H A Dlpe-mirror_symmetry.cpp245 position = Geom::sgn(Geom::cross(e - s, middle - s));
264 position = Geom::sgn(Geom::cross(e - s, original.finalPoint() - s));
H A Dlpe-sketch.cpp349 double r = std::pow(v_t.length(), 3) / cross(v_t, a_t);
H A Dlpe-copy_rotate.cpp183 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 Dline.cpp109 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 Dsbasis-geometric.cpp368 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 Dpoint.h361 /** @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 Dconvex-hull.cpp110 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 Dpoint.cpp165 return std::atan2(cross(a,b), dot(a,b));
H A Dconic_section_clipper_impl.cpp206 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 Dcircle.cpp149 Coord D = cross(l.initialPoint(), l.finalPoint());
169 Coord D = cross(l.initialPoint() - _center, l.finalPoint() - _center);
H A Dd2-sbasis.cpp144 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 Dgeom.cpp375 const double ai = cross(p[j], p[i]);
H A Dellipse.cpp231 // 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 Dpath-intersection.cpp72 * 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 Dd2.h381 /** @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 Dconicsec.cpp693 return (cross(p2, p3) - cross(p1, p3) + cross(p1, p2));
/inkscape/src/
H A Dsp-conn-end.cpp75 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 Dgeom-pathstroke.cpp26 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 Dsweep-tree.cpp120 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 DPathConversion.cpp719 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 DPathStroke.cpp295 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 DShapeSweep.cpp35 * 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 DPathOutline.cpp1116 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);

Completed in 4885 milliseconds

12