Engauge Digitizer  2
SplineCoeff.h
1 #ifndef SPLINE_COEFF
2 #define SPLINE_COEFF
3 
4 #include "SplinePair.h"
5 
9 {
10 public:
12  SplineCoeff(double t);
13 
15  SplineCoeff(double t,
16  const SplinePair &a,
17  const SplinePair &b,
18  const SplinePair &c,
19  const SplinePair &d);
20 
22  bool operator<(const SplineCoeff &e) const;
23 
25  bool operator<(double t) const;
26 
28  SplinePair a () const;
29 
31  SplinePair b () const;
32 
34  SplinePair c () const;
35 
37  SplinePair d () const;
38 
40  SplinePair eval(double t) const;
41 
43  double t () const;
44 
45 private:
46  SplineCoeff();
47 
48  double m_t;
49  SplinePair m_a;
50  SplinePair m_b;
51  SplinePair m_c;
52  SplinePair m_d;
53 };
54 
55 #endif // SPLINE_COEFF
double t() const
T value associated with these a,b,c,d coefficients.
Definition: SplineCoeff.cpp:56
SplinePair c() const
Get method for c.
Definition: SplineCoeff.cpp:40
SplinePair a() const
Get method for a.
Definition: SplineCoeff.cpp:30
bool operator<(const SplineCoeff &e) const
Comparison operator for collection.
Definition: SplineCoeff.cpp:20
SplinePair eval(double t) const
Evaluate the value using the a,b,c,d coefficients, over this interval.
Definition: SplineCoeff.cpp:50
SplinePair b() const
Get method for b.
Definition: SplineCoeff.cpp:35
SplinePair d() const
Get method for d.
Definition: SplineCoeff.cpp:45
Four element vector of a,b,c,d coefficients and the associated x value, for one interval of a set of ...
Definition: SplineCoeff.h:8
Single X/Y pair for cubic spline interpolation initialization and calculations.
Definition: SplinePair.h:5