/inkscape/src/libavoid/ |
H A D | geometry.h | 45 extern double euclideanDist(const Point& a, const Point& b); 46 extern double manhattanDist(const Point& a, const Point& b); 48 extern double angle(const Point& a, const Point& b, const Point& c); 49 extern bool segmentIntersect(const Point& a, const Point& b, 50 const Point [all...] |
H A D | geomtypes.h | 41 //! @brief The Point class defines a point in the plane. 46 class Point class in namespace:Avoid 51 Point(); 57 Point(const double xv, const double yv); 64 bool operator==(const Point& rhs) const; 70 bool operator!=(const Point& rhs) const; 74 //! to allow std::set<Point>. 79 bool operator<(const Point& rhs) const; 105 //! @brief A vector, represented by the Point class. 107 typedef Point Vecto [all...] |
/inkscape/src/2geom/ |
H A D | cairo-path-sink.h | 61 void moveTo(Point const &p); 62 void lineTo(Point const &p); 63 void curveTo(Point const &c0, Point const &c1, Point const &p); 64 void quadTo(Point const &c, Point const &p); 66 bool large_arc, bool sweep, Point const &p); 72 Point _current_point;
|
H A D | bezier-utils.h | 48 Point bezier_pt(unsigned degree, Point const V[], double t); 50 int bezier_fit_cubic(Point bezier[], Point const data[], int len, double error); 52 int bezier_fit_cubic_r(Point bezier[], Point const data[], int len, double error, 55 int bezier_fit_cubic_full(Point bezier[], int split_points[], Point const data[], int len, 56 Point const &tHat1, Point cons [all...] |
H A D | point.h | 50 class Point class in namespace:Geom 51 : boost::additive< Point 52 , boost::totally_ordered< Point 53 , boost::multiplicative< Point, Coord 54 , MultipliableNoncommutative< Point, Affine 55 , MultipliableNoncommutative< Point, Translate 56 , MultipliableNoncommutative< Point, Rotate 57 , MultipliableNoncommutative< Point, Scale 58 , MultipliableNoncommutative< Point, HShear 59 , MultipliableNoncommutative< Point, VShea 72 Point() function in class:Geom::Point 76 Point(Coord x, Coord y) { function in class:Geom::Point 80 Point(IntPoint const &p) { function in class:Geom::Point [all...] |
H A D | svg-path-writer.h | 52 void moveTo(Point const &p); 53 void lineTo(Point const &p); 54 void quadTo(Point const &c, Point const &p); 55 void curveTo(Point const &c0, Point const &c1, Point const &p); 57 bool large_arc, bool sweep, Point const &p); 97 Point _subpath_start; 98 Point _curren [all...] |
H A D | conic_section_clipper_impl.h | 117 const std::vector<Point> & isolated_points() const 124 bool intersect (std::vector<Point> & crossing_points) const; 126 bool are_paired (Point & M, const Point & P1, const Point & P2) const; 127 void pairing (std::vector<Point> & paired_points, 128 std::vector<Point> & inner_points, 129 const std::vector<Point> & crossing_points); 131 Point find_inner_point_by_bisector_line (const Point [all...] |
H A D | geom.cpp | 69 line_intersection(Geom::Point const &n0, double const d0, 70 Geom::Point const &n1, double const d1, 71 Geom::Point &result) 89 result = Geom::Point(X, Y) / denominator; 98 intersector_ccw(const Geom::Point& p0, const Geom::Point& p1, 99 const Geom::Point& p2) 102 Geom::Point d1 = p1 - p0; 103 Geom::Point d2 = p2 - p0; 130 line_segment_intersectp(Geom::Point cons [all...] |
H A D | convex-hull.h | 53 , Point 55 , Point const * 56 , Point const & 66 ConvexHullLowerIterator(std::vector<Point> const &pts, std::size_t x) 91 Point const &operator*() const { 106 Point const *_data; 119 typedef std::vector<Point>::const_iterator iterator; 120 typedef std::vector<Point>::const_iterator const_iterator; 121 typedef std::vector<Point>::const_iterator UpperIterator; 130 explicit ConvexHull(Point cons [all...] |
H A D | nearest-time.h | 54 inline double nearest_time(Point const &p, Point const &A, Point const &v) 56 Point d(p - A); 60 Coord nearest_time(Point const &p, D2<Bezier> const &bez, Coord from = 0, Coord to = 1); 71 double nearest_time(Point const &p, 76 double nearest_time(Point const &p, 89 all_nearest_times(Point const& p, 95 all_nearest_times(Point const &p, 106 double nearest_time(Point cons [all...] |
H A D | bezier-utils.cpp | 57 static void generate_bezier(Point b[], Point const d[], double const u[], unsigned len, 58 Point const &tHat1, Point const &tHat2, double tolerance_sq); 59 static void estimate_lengths(Point bezier[], 60 Point const data[], double const u[], unsigned len, 61 Point const &tHat1, Point const &tHat2); 62 static void estimate_bi(Point b[4], unsigned ei, 63 Point cons [all...] |
H A D | conicsec.h | 68 Point P[3]; 71 RatQuad(Point a, Point b, Point c, double w) : w(w) { 78 static RatQuad fromPointsTangents(Point P0, Point dP0, 79 Point P, 80 Point P2, Point dP2); 81 static RatQuad circularArc(Point P [all...] |
/inkscape/src/libdepixelize/priv/ |
H A D | point.h | 31 struct Point struct in namespace:Tracer 33 Point() : smooth(false), visible(true) {} function in struct:Tracer::Point 34 Point(T x, T y) : smooth(false), visible(true), x(x), y(y) {} function in struct:Tracer::Point 35 Point(T x, T y, bool smooth) : smooth(smooth), visible(true), x(x), y(y) {} function in struct:Tracer::Point 37 Point operator+(const Point &rhs) const 39 return Point(x + rhs.x, y + rhs.y); 42 Point operator/(T foo) const 44 return Point(x / foo, y / foo); 47 Point invisibl [all...] |
/inkscape/src/ |
H A D | line-geometry.h | 28 Line(Geom::Point const &start, Geom::Point const &vec, bool is_endpoint = true); 32 virtual boost::optional<Geom::Point> intersect(Line const &line); 33 inline Geom::Point direction () { return v_dir; } 35 Geom::Point closest_to(Geom::Point const &pt); // returns the point on the line closest to pt 38 boost::optional<Geom::Point> intersection_with_viewbox (SPDesktop *desktop); 39 inline bool lie_on_same_side (Geom::Point const &A, Geom::Point const &B) { 46 double lambda (Geom::Point cons [all...] |
H A D | knot-holder-entity.h | 34 typedef void (* SPKnotHolderSetFunc) (SPItem *item, Geom::Point const &p, Geom::Point const &origin, unsigned int state); 35 typedef Geom::Point (* SPKnotHolderGetFunc) (SPItem *item); 63 virtual void knot_set(Geom::Point const &p, Geom::Point const &origin, unsigned int state) = 0; 64 virtual Geom::Point knot_get() const = 0; 70 Geom::Point snap_knot_position(Geom::Point const &p, unsigned int state); 71 Geom::Point snap_knot_position_constrained(Geom::Point cons [all...] |
H A D | line-geometry.cpp | 31 Line::Line(Geom::Point const &start, Geom::Point const &vec, bool is_endpoint): 59 boost::optional<Geom::Point> Line::intersect(Line const &line) { 61 boost::optional<Geom::Point> no_point; 69 void Line::set_direction(Geom::Point const &dir) 76 Geom::Point Line::closest_to(Geom::Point const &pt) 79 boost::optional<Geom::Point> result = this->intersect(Line(pt, (this->v_dir).ccw(), false)); 80 g_return_val_if_fail (result, Geom::Point (0.0, 0.0)); 84 double Line::lambda (Geom::Point cons [all...] |
/inkscape/src/ui/tools/ |
H A D | dynamic-base.h | 65 Geom::Point point1[SAMPLING_SIZE]; 68 Geom::Point point2[SAMPLING_SIZE]; 77 Geom::Point cur; 78 Geom::Point vel; 80 Geom::Point acc; 81 Geom::Point ang; 82 Geom::Point last; 83 Geom::Point del; 110 Geom::Point getViewPoint(Geom::Point [all...] |
/inkscape/src/live_effects/ |
H A D | lpe-circle_3pts.cpp | 34 static void _circle3(Geom::Point const &A, Geom::Point const &B, Geom::Point const &C, Geom::PathVector &path_out) { 37 Point D = (A + B)/2; 38 Point E = (B + C)/2; 40 Point v = (B - A).ccw(); 41 Point w = (C - B).ccw(); 44 Point F = E - D; 47 Point M = D + v * lambda; 60 Geom::Point [all...] |
/inkscape/src/ui/widget/ |
H A D | point.cpp | 28 Point::Point(Glib::ustring const &label, Glib::ustring const &tooltip, function in class:Inkscape::UI::Widget::Point 41 Point::Point(Glib::ustring const &label, Glib::ustring const &tooltip, function in class:Inkscape::UI::Widget::Point 55 Point::Point(Glib::ustring const &label, Glib::ustring const &tooltip, function in class:Inkscape::UI::Widget::Point 74 unsigned Point::getDigits() const 79 double Point::getStep() const 84 double Point::getPage() const 89 double Point [all...] |
/inkscape/src/livarot/ |
H A D | Path.h | 83 path_lineto(bool m, Geom::Point pp) : isMoveTo(m), p(pp), piece(-1), t(0), closed(false) {} 84 path_lineto(bool m, Geom::Point pp, int pie, double tt) : isMoveTo(m), p(pp), piece(pie), t(tt), closed(false) {} 87 Geom::Point p; 107 int MoveTo ( Geom::Point const &ip); 108 int LineTo ( Geom::Point const &ip); 109 int CubicTo ( Geom::Point const &ip, Geom::Point const &iStD, Geom::Point const &iEnD); 110 int ArcTo ( Geom::Point const &ip, double iRx, double iRy, double angle, bool iLargeArc, bool iClockwise); 111 int IntermBezierTo ( Geom::Point cons [all...] |
H A D | path-description.h | 38 virtual void dumpSVG(Inkscape::SVGOStringStream &/*s*/, Geom::Point const &/*last*/) const {} 51 PathDescrMoveTo(Geom::Point const &pp) 54 void dumpSVG(Inkscape::SVGOStringStream &s, Geom::Point const &last) const; 59 Geom::Point p; 64 PathDescrLineTo(Geom::Point const &pp) 67 void dumpSVG(Inkscape::SVGOStringStream &s, Geom::Point const &last) const; 72 Geom::Point p; 78 PathDescrBezierTo(Geom::Point const &pp, int n) 85 Geom::Point p; // the endpoint's coordinates 94 PathDescrIntermBezierTo(Geom::Point cons [all...] |
/inkscape/src/live_effects/parameter/ |
H A D | transformedpoint.h | 31 Geom::Point default_vector = Geom::Point(1,0), 41 Geom::Point getVector() const { return vector; }; 42 Geom::Point getOrigin() const { return origin; }; 43 void setValues(Geom::Point const &new_origin, Geom::Point const &new_vector) { setVector(new_vector); setOrigin(new_origin); }; 44 void setVector(Geom::Point const &new_vector) { vector = new_vector; }; 45 void setOrigin(Geom::Point const &new_origin) { origin = new_origin; }; 48 void set_and_write_new_values(Geom::Point const &new_origin, Geom::Point cons [all...] |
H A D | vector.h | 31 Geom::Point default_vector = Geom::Point(1,0) ); 40 Geom::Point getVector() const { return vector; }; 41 Geom::Point getOrigin() const { return origin; }; 42 void setValues(Geom::Point const &new_origin, Geom::Point const &new_vector) { setVector(new_vector); setOrigin(new_origin); }; 43 void setVector(Geom::Point const &new_vector) { vector = new_vector; }; 44 void setOrigin(Geom::Point const &new_origin) { origin = new_origin; }; 47 void set_and_write_new_values(Geom::Point const &new_origin, Geom::Point cons [all...] |
/inkscape/src/display/ |
H A D | curve.h | 51 boost::optional<Geom::Point> first_point() const; 52 boost::optional<Geom::Point> last_point() const; 53 boost::optional<Geom::Point> second_point() const; 54 boost::optional<Geom::Point> penultimate_point() const; 58 void moveto(Geom::Point const &p); 60 void lineto(Geom::Point const &p); 62 void quadto(Geom::Point const &p1, Geom::Point const &p2); 64 void curveto(Geom::Point const &p0, Geom::Point cons [all...] |
H A D | sp-ctrlquadr.h | 27 void sp_ctrlquadr_set_coords (SPCtrlQuadr *cl, const Geom::Point p1, const Geom::Point p2, const Geom::Point p3, const Geom::Point p4);
|