Code

* Implement node snapping.
[inkscape.git] / src / snapper.h
index 110b3d36ad5292fa721e1db7e55b76af01c5ce19..1801f309c807790fc701a77f55925080ff90489f 100644 (file)
@@ -71,6 +71,7 @@ public:
     public:
         ConstraintLine(Geom::Point const &d) : _has_point(false), _direction(d) {}
         ConstraintLine(Geom::Point const &p, Geom::Point const &d) : _has_point(true), _point(p), _direction(d) {}
+        ConstraintLine(Geom::Line const &l) : _has_point(true), _point(l.origin()), _direction(l.versor()) {}
 
         bool hasPoint() const {
             return _has_point;