00001 /****************************************************************************************************** 00002 * (C) 2014 markummitchell@github.com. This file is part of Engauge Digitizer, which is released * 00003 * under GNU General Public License version 2 (GPLv2) or (at your option) any later version. See file * 00004 * LICENSE or go to gnu.org/licenses for details. Distribution requires prior written permission. * 00005 ******************************************************************************************************/ 00006 00007 #ifndef SPLINE_PAIR_H 00008 #define SPLINE_PAIR_H 00009 00011 class SplinePair 00012 { 00013 public: 00015 SplinePair(); 00016 00018 SplinePair (double scalar); 00019 00021 SplinePair(double x, 00022 double y); 00023 00025 SplinePair(const SplinePair&other); 00026 00028 SplinePair operator+(const SplinePair &other) const; 00029 00031 SplinePair operator-(const SplinePair &other) const; 00032 00034 SplinePair operator*(const SplinePair &other) const; 00035 00037 SplinePair operator/(const SplinePair &other) const; 00038 00040 double x() const; 00041 00043 double y() const; 00044 00045 private: 00046 00047 double m_x; 00048 double m_y; 00049 }; 00050 00051 #endif // SPLINE_PAIR_H