2
Copyright (C) 1998 J�rgen Hochwald <juergen.hochwald@privat.kkf.net>
4
This library is free software; you can redistribute it and/or
5
modify it under the terms of the GNU Library General Public
6
License as published by the Free Software Foundation; either
7
version 2 of the License, or (at your option) any later version.
9
This library is distributed in the hope that it will be useful,
10
but WITHOUT ANY WARRANTY; without even the implied warranty of
11
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12
Library General Public License for more details.
14
You should have received a copy of the GNU General Public License
15
along with this library; see the file COPYING. If not, write to
16
the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17
Boston, MA 02111-1307, USA.
35
std::vector<Spline::Group> mPoints;
40
// stupid AIX[?] compiler won't let me give it a value here
41
static const bool natural;
45
Spline(const Spline ©);
47
Spline &operator =(const Spline ©);
51
* if the curve had @p count points, return them
53
std::vector<double> points(int count) const;
55
void add(double x, double y);
56
double spline(double xarg) const;
57
double operator[] (double xarg) const { return spline(xarg); }
58
int numPoints() const { return mPoints.size(); }
59
double x(int num) const;
60
double y(int num) const;
65
void calcSpline() const
67
const_cast<Spline*>(this)->calcSpline();