Mondschein Engine  0.3.0
pol_int.h
Go to the documentation of this file.
1 #ifndef POL_INT_H_INCLUDED
2 #define POL_INT_H_INCLUDED
3 
4 /* Mondschein Engine is a fast, powerful, and easy-to-use 3D realtime rendering engine.
5  *
6  * Copyright (C) 2009-2013 by Andreas Amereller
7  * E-Mail: andreas.amereller.dev@googlemail.com
8  *
9  * This program is free software; you can redistribute it and/or modify it
10  * under the terms of the GNU General Public License as published by the Free
11  * Software Foundation; either version 3 of the License, or (at your option)
12  * any later version.
13  *
14  * This program is distributed in the hope that it will be useful, but WITHOUT
15  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
16  * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
17  * more details.
18  *
19  * You should have received a copy of the GNU General Public License along
20  * with this program; if not, write to the Free Software Foundation, Inc.,
21  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
22  */
24 
25 #include "types.h"
26 
27 namespace mondschein
28 {
29  namespace math
30  {
39  class Pol_Int
40  {
41  private:
42  std::map<float64,float64> points;
43 
44  protected:
45  explicit Pol_Int();
46  explicit Pol_Int(const std::map<float64,float64> &_p);
47  explicit Pol_Int(Pol_Int_c _obj);
48  virtual ~Pol_Int();
49  virtual Pol_Int &operator=(Pol_Int_c _obj);
50 
51  public:
57  virtual std::map<float64,float64> get_points() const;
58 
66  virtual float64 interpolate(float64 _x) const = 0;
67  };
68  }
69 }
70 
71 #endif // POL_INT_H_INCLUDED