Lines Matching defs:line
114 Inkscape::SnappedPoint Inkscape::SnappedCurve::intersect(SnappedLine const &line, Geom::Point const &p, Geom::Affine dt2doc) const
116 // Calculate the intersections of a curve with a line, which are both within snapping range, and
120 // closest, as there might be multiple intersections of a single curve with a line
123 // 2) convert to document coordinates (line and p are in desktop coordinates, but the curves are in document coordinate)
127 Geom::LineSegment line_segm = line.getLine().transformed(dt2doc).segment(-1e6, 1e6); //
149 if (_distance < line.getSnapDistance()) {
153 Geom::L2(best_p - line.getPoint()), line.getTolerance(), line.getAlwaysSnap());
155 return SnappedPoint(best_p, Inkscape::SNAPSOURCE_UNDEFINED, line.getSourceNum(), Inkscape::SNAPTARGET_PATH_GUIDE_INTERSECTION,
156 Geom::L2(best_p - line.getPoint()), line.getTolerance(), line.getAlwaysSnap(), true, false, true,
166 // search for the closest snapped line