summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: daca923)
raw | patch | inline | side by side (parent: daca923)
author | johanengelen <johanengelen@users.sourceforge.net> | |
Wed, 10 Sep 2008 00:12:17 +0000 (00:12 +0000) | ||
committer | johanengelen <johanengelen@users.sourceforge.net> | |
Wed, 10 Sep 2008 00:12:17 +0000 (00:12 +0000) |
src/display/curve.cpp | patch | blob | history |
diff --git a/src/display/curve.cpp b/src/display/curve.cpp
index c5bb0d2310f7f55039d9e1d4f09aabf24802983b..519def37df5b34fd8d5d91070a67e080a730f792 100644 (file)
--- a/src/display/curve.cpp
+++ b/src/display/curve.cpp
/**
* 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)