Searched defs:a2 (Results 1 - 11 of 11) sorted by relevance

/inkscape/src/
H A Dsnapped-point.cpp57 Inkscape::SnappedPoint::SnappedPoint(Geom::Point const &p, SnapSourceType const &source, long source_num, SnapTargetType const &target, Geom::Coord const &d, Geom::Coord const &t, bool const &a, bool const &at_intersection, bool const &constrained_snap, bool const &fully_constrained, Geom::Coord const &d2, Geom::Coord const &t2, bool const &a2) : argument
71 _second_always_snap(a2),
H A Dunclump.cpp90 double a2 = atan2 ((c1 - c2)[Geom::Y], (c1 - c2)[Geom::X] * wh2[Geom::Y]/wh2[Geom::X]); local
91 a2 = fabs (a2);
92 if (a2 > M_PI/2) a2 = M_PI - a2;
96 double r2 = 0.5 * (wh2[Geom::X] + (wh2[Geom::Y] - wh2[Geom::X]) * (a2/(M_PI/2)));
/inkscape/src/display/
H A Ddrawing-image.cpp170 /** Calculates the closest distance from p to the segment a1-a2*/
172 distance_to_segment (Geom::Point const &p, Geom::Point const &a1, Geom::Point const &a2) argument
174 Geom::LineSegment l(a1, a2);
H A Dnr-filter-gaussian.cpp258 double a1=b[0], a2=b[1], a3=b[2]; local
259 double const Mscale = 1.0/((1+a1-a2+a3)*(1-a1-a2-a3)*(1+a2+(a1-a3)*a3));
260 M[0] = 1-a2-a1*a3-sqr(a3);
261 M[1] = (a1+a3)*(a2+a1*a3);
262 M[2] = a3*(a1+a2*a3);
263 M[3] = a1+a2*a3;
264 M[4] = (1-a2)*(a2
[all...]
/inkscape/src/2geom/
H A Dbezier-curve.cpp450 static Coord bezier_length_internal(Point a0, Point a1, Point a2, Coord tolerance, int level) argument
452 Coord lower = distance(a0, a2);
453 Coord upper = distance(a0, a1) + distance(a1, a2);
461 // c0 = a2,
463 c1 = 0.5*(a1 + a2),
466 bezier_length_internal(b2, c1, a2, 0.5 * tolerance, level + 1);
471 Coord bezier_length(Point a0, Point a1, Point a2, Coord tolerance) argument
473 return bezier_length_internal(a0, a1, a2, tolerance, 0);
476 static Coord bezier_length_internal(Point a0, Point a1, Point a2, Point a3, Coord tolerance, int level) argument
479 Coord upper = distance(a0, a1) + distance(a1, a2)
500 bezier_length(Point a0, Point a1, Point a2, Point a3, Coord tolerance) argument
[all...]
/inkscape/src/libavoid/
H A Dgeometry.cpp148 // shortest paths. a0, a1, a2 are ordered vertices of a shape.
153 const Point& a2, const Point& b)
156 // s is a1--a2
159 int sSide = vecDir(b, a1, a2);
167 if (vecDir(a0, a1, a2) > 0)
429 int segmentIntersectPoint(const Point& a1, const Point& a2, argument
435 Ax = a2.x - a1.x;
441 x1lo = a2.x;
446 x1hi = a2.x;
458 Ay = a2
152 inValidRegion(bool IgnoreRegions, const Point& a0, const Point& a1, const Point& a2, const Point& b) argument
529 rayIntersectPoint(const Point& a1, const Point& a2, const Point& b1, const Point& b2, double *x, double *y) argument
[all...]
H A Dconnector.cpp1285 Avoid::Point& a2 = conn.ps[cIndex]; local
1287 //db_printf("a2: %g %g\n", a2.x, a2.y);
1301 const bool a2_eq_b1 = (a2 == b1);
1302 const bool a2_eq_b2 = (a2 == b2);
1344 if (a2 == b0)
1346 // a2 is not a split, continue.
1351 // If here and not converging, then we know that a2 != b2
1352 // And a2 an
[all...]
/inkscape/src/extension/internal/filter/
H A Dcolor.h626 std::ostringstream a2; local
650 a2 << (color2 & 0xff) / 255.0F;
655 a2 << (color1 & 0xff) / 255.0F;
660 a2 << (color1 & 0xff) / 255.0F;
665 a2 << (color2 & 0xff) / 255.0F;
681 a2.str().c_str(), r2.str().c_str(), g2.str().c_str(), b2.str().c_str(), swap2.str().c_str(),
/inkscape/src/ui/tools/
H A Dcalligraphic-tool.cpp307 double a2 = atan2(ang2); local
308 // flip a2 to force it to be in the same half-circle as a1
310 if (fabs (a2-a1) > 0.5*M_PI) {
311 a2 += M_PI;
314 // normalize a2
315 if (a2 > M_PI)
316 a2 -= 2*M_PI;
317 if (a2 < -M_PI)
318 a2 += 2*M_PI;
319 // find the flatness-weighted bisector angle, unflip if a2 wa
[all...]
H A Deraser-tool.cpp255 double a2 = atan2(ang2); local
256 // flip a2 to force it to be in the same half-circle as a1
258 if (fabs (a2-a1) > 0.5*M_PI) {
259 a2 += M_PI;
262 // normalize a2
263 if (a2 > M_PI)
264 a2 -= 2*M_PI;
265 if (a2 < -M_PI)
266 a2 += 2*M_PI;
267 // find the flatness-weighted bisector angle, unflip if a2 wa
[all...]
/inkscape/src/extension/internal/pdfinput/
H A Dpdf-parser.cpp657 double a2 = args[2].getNum(); local
662 builder->setTransform(a0, a1, a2, a3, a4, a5);
673 double c2 = a2*otherMatrix[0] + a3*otherMatrix[2];
674 double c3 = a2*otherMatrix[1] + a3*otherMatrix[3];
680 builder->setTransform(a0, a1, a2, a3, a4, a5);

Completed in 56 milliseconds