diff options
| author | Diederik van Lierop <mail@diedenrezi.nl> | 2015-09-13 17:50:28 +0000 |
|---|---|---|
| committer | Diederik van Lierop <mail@diedenrezi.nl> | 2015-09-13 17:50:28 +0000 |
| commit | 25900540fbb26b44933ce1ead2240893769cd60f (patch) | |
| tree | 731a41270b51019617bf708b2ad6da26cb3cfe81 /src/snapper.h | |
| parent | Second round of extension executable bit cleanup. (diff) | |
| download | inkscape-25900540fbb26b44933ce1ead2240893769cd60f.tar.gz inkscape-25900540fbb26b44933ce1ead2240893769cd60f.zip | |
Refactoring of the code that handles transformations and snapping in the selector tool and the node tool. Splitting large chunks of code into some small classes, and eliminating some wrapper methods which were all just too similar
(bzr r14363)
Diffstat (limited to 'src/snapper.h')
| -rw-r--r-- | src/snapper.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/snapper.h b/src/snapper.h index 9616d0954..24f9b9442 100644 --- a/src/snapper.h +++ b/src/snapper.h @@ -76,6 +76,8 @@ public: SnapConstraint(Geom::Point const &d) : _point(), _direction(d), _radius(0), _type(DIRECTION) {} // Constructs a linear constraint SnapConstraint(Geom::Point const &p, Geom::Point const &d) : _point(p), _direction(d), _radius(0), _type(LINE) {} + // Orthogonal version + SnapConstraint(Geom::Point const &p, Geom::Dim2 const &d) : _point(p), _radius(0), _type(LINE) {_direction = Geom::Point(); _direction[d] = 1.;} SnapConstraint(Geom::Line const &l) : _point(l.origin()), _direction(l.versor()), _radius(0), _type(LINE) {} // Constructs a circular constraint SnapConstraint(Geom::Point const &p, Geom::Point const &d, Geom::Coord const &r) : _point(p), _direction(d), _radius(r), _type(CIRCLE) {} |
