Lines Matching defs:arc
39 #include <2geom/elliptical-arc.h>
54 * @brief Elliptical arc curve
56 * Elliptical arc is a curve taking the shape of a section of an ellipse.
58 * The arc function has two forms: the regular one, mapping the unit interval to points
61 * determines which part of the ellipse forms the arc. The arc is said to contain an angle
82 * Each arc is defined by five variables: The initial and final point, the ellipse's rays,
85 * from initial to final point. The two flags disambiguate between them: "large arc flag" selects
86 * the bigger arc, while the "sweep flag" selects the arc going in the direction of positive
90 * @image html elliptical-arc-flags.png "Meaning of arc flags (Y grows downwards)"
96 /** @brief Compute bounds of an elliptical arc.
109 * Once we compute these angles, we check whether they belong to the arc,
111 * The bounding box of the arc is equal to the bounding box of the endpoints
112 * and the local extrema that belong to the arc.
311 EllipticalArc *arc = new EllipticalArc();
312 arc->_initial_point = arc->_final_point = pointAt(f);
313 return arc;
316 EllipticalArc *arc = static_cast<EllipticalArc*>(duplicate());
317 arc->_initial_point = pointAt(f);
318 arc->_final_point = pointAt(t);
319 arc->_angles.setAngles(angleAt(f), angleAt(t));
320 if (f > t) arc->_angles.setSweep(!sweep());
322 arc->_large_arc = false;
324 return arc;
327 // the arc is the same but traversed in the opposite direction
608 EllipticalArc const *arc = dynamic_cast<EllipticalArc const *>(&other);
609 if (arc) {
610 result = _ellipse.intersect(arc->_ellipse);
612 arc->_filterIntersections(result, false);
629 // if ip = sp, the arc contains no other points
703 D2<SBasis> arc;
710 // order = 4 seems to be enough to get a perfect looking elliptical arc
713 arc[0] = arc_x * cosrot - arc_y * sinrot + Linear(center(X), center(X));
714 arc[1] = arc_x * sinrot + arc_y * cosrot + Linear(center(Y), center(Y));
718 arc[d][0][0] = initialPoint()[d];
719 arc[d][0][1] = finalPoint()[d];
722 return arc;
852 // we'll compute the result for an arc in the direction of increasing angles