Engauge Digitizer 2
Loading...
Searching...
No Matches
SplinePair.h
1/******************************************************************************************************
2 * (C) 2014 markummitchell@github.com. This file is part of Engauge Digitizer, which is released *
3 * under GNU General Public License version 2 (GPLv2) or (at your option) any later version. See file *
4 * LICENSE or go to gnu.org/licenses for details. Distribution requires prior written permission. *
5 ******************************************************************************************************/
6
7#ifndef SPLINE_PAIR_H
8#define SPLINE_PAIR_H
9
12{
13 public:
15 SplinePair();
16
18 SplinePair (double scalar);
19
21 SplinePair(double x,
22 double y);
23
25 SplinePair(const SplinePair&other);
26
28 SplinePair operator+(const SplinePair &other) const;
29
31 SplinePair operator-(const SplinePair &other) const;
32
34 SplinePair operator*(const SplinePair &other) const;
35
37 SplinePair operator/(const SplinePair &other) const;
38
40 double x() const;
41
43 double y() const;
44
45 private:
46
47 double m_x;
48 double m_y;
49};
50
51#endif // SPLINE_PAIR_H
Single X/Y pair for cubic spline interpolation initialization and calculations.
Definition SplinePair.h:12
double y() const
Get method for y.
double x() const
Get method for x.
SplinePair operator-(const SplinePair &other) const
Subtraction operator.
SplinePair()
Default constructor. Normally used only by generic container classes.
Definition SplinePair.cpp:9
SplinePair operator/(const SplinePair &other) const
Division operator.
SplinePair operator*(const SplinePair &other) const
Multiplication operator.
SplinePair operator+(const SplinePair &other) const
Addition operator.