diff options
| author | Johan B. C. Engelen <jbc.engelen@swissonline.ch> | 2008-09-10 00:12:17 +0000 |
|---|---|---|
| committer | johanengelen <johanengelen@users.sourceforge.net> | 2008-09-10 00:12:17 +0000 |
| commit | cb86807ce16703563382300ec018ea9568e02c03 (patch) | |
| tree | 1056b9b07514e6516588dd8d736e54a73ee30575 /src/display/curve.cpp | |
| parent | Temporarily specifying a return value to avoid strange bugs (diff) | |
| download | inkscape-cb86807ce16703563382300ec018ea9568e02c03.tar.gz inkscape-cb86807ce16703563382300ec018ea9568e02c03.zip | |
add quick comment
(bzr r6786)
Diffstat (limited to 'src/display/curve.cpp')
| -rw-r--r-- | src/display/curve.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/display/curve.cpp b/src/display/curve.cpp index c5bb0d231..519def37d 100644 --- a/src/display/curve.cpp +++ b/src/display/curve.cpp @@ -540,6 +540,12 @@ SPCurve::backspace() /** * TODO: add comments about what this method does and what assumptions are made and requirements are put on SPCurve + (2:08:18 AM) Johan: basically, i convert the path to pw<d2> +(2:08:27 AM) Johan: then i calculate an offset path +(2:08:29 AM) Johan: to move the knots +(2:08:36 AM) Johan: then i add it +(2:08:40 AM) Johan: then convert back to path +If I remember correctly, this moves the firstpoint to new_p0, and the lastpoint to new_p1, and moves all nodes in between according to their arclength (interpolates the movement amount) */ void SPCurve::stretch_endpoints(Geom::Point const &new_p0, Geom::Point const &new_p1) |
