Searched defs:seg (Results 1 - 8 of 8) sorted by relevance

/inkscape/src/2geom/
H A Dbezier-curve.h331 inline Coord length(LineSegment const& seg) { argument
332 return distance(seg.initialPoint(), seg.finalPoint());
H A Dline.h93 explicit Line(LineSegment const &seg) argument
94 : _initial(seg.initialPoint())
95 , _final(seg.finalPoint())
274 LineSegment* seg = new LineSegment(pointAt(f), pointAt(t)); local
275 return seg;
464 double distance(Point const &p, LineSegment const &seg) argument
466 double t = seg.nearestTime(p);
467 return distance(p, seg.pointAt(t));
471 bool are_near(Point const &p, LineSegment const &seg, double eps = EPSILON) argument
473 return are_near(distance(p, seg),
518 projection(LineSegment const &seg, Line const &line) argument
[all...]
H A Dconicsec.cpp47 boost::optional<LineSegment> seg = l.clip(r); local
48 if (seg) {
49 return *seg;
/inkscape/src/livarot/
H A DPathSimplify.cpp130 Geom::Point seg = res.p - start; local
131 nnle = Geom::cross(sp, seg);
133 nnle /= Geom::dot(seg, seg);
135 if ( Geom::dot(sp,seg) >= 0 ) {
136 seg = start - res.p;
137 if ( Geom::dot(ep,seg) >= 0 ) {
H A DPathOutline.cpp918 Geom::Point const seg = iE - iS; member in class:Geom
919 double const l = L2(seg);
925 tgt = seg / l;
926 pos = (1 - at) * iS + at * iE; // in other words, pos = iS + at * seg
/inkscape/src/
H A Dsplivarot.cpp2413 boost::optional<Path::cut_position> get_nearest_position_on_Path(Path *path, Geom::Point p, unsigned seg) argument
2416 Path::cut_position pos = path->PointToCurvilignPosition(p, seg);
/inkscape/src/ui/tool/
H A Dpath-manipulator.cpp667 unsigned seg = 0; local
672 bezier_data[seg * samples_per_segment + s] = bc.pointAt(t_step * s);
674 ++seg;
/inkscape/
H A Dbuildtool.cpp2199 String seg = path.substr(pos); local
2200 //printf("last segment:%s\n", seg.c_str());
2201 segments.push_back(seg);
2206 String seg = path.substr(pos, pos2-pos); local
2207 //printf("segment:%s\n", seg.c_str());
2208 segments.push_back(seg);

Completed in 71 milliseconds