summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e54ce05)
raw | patch | inline | side by side (parent: e54ce05)
author | cilix42 <cilix42@users.sourceforge.net> | |
Sun, 18 May 2008 18:31:07 +0000 (18:31 +0000) | ||
committer | cilix42 <cilix42@users.sourceforge.net> | |
Sun, 18 May 2008 18:31:07 +0000 (18:31 +0000) |
src/2geom/piecewise.h | patch | blob | history |
diff --git a/src/2geom/piecewise.h b/src/2geom/piecewise.h
index d548ea0e9f76f98fbd1d37d472663b213528336c..3b115cb95d971d4f2ed070613ba2b5b25af1eacb 100644 (file)
--- a/src/2geom/piecewise.h
+++ b/src/2geom/piecewise.h
unsigned n = segN(t);
return segs[n](segT(t, n));
}
+ inline output_type firstValue() const {
+ return valueAt(cuts.front());
+ }
+ inline output_type lastValue() const {
+ return valueAt(cuts.back());
+ }
std::vector<output_type> valueAndDerivatives(double t, unsigned cnt) const {
unsigned n = segN(t);
std::vector<output_type> ret, val = segs[n].valueAndDerivatives(segT(t, n), cnt);