evaluator_spline.hpp
Go to the documentation of this file.
1 /*
2 ** TP CPE Lyon
3 ** Copyright (C) 2014 Damien Rohmer
4 **
5 ** This program is free software: you can redistribute it and/or modify
6 ** it under the terms of the GNU General Public License as published by
7 ** the Free Software Foundation, either version 3 of the License, or
8 ** (at your option) any later version.
9 **
10 ** This program is distributed in the hope that it will be useful,
11 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
12 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 ** GNU General Public License for more details.
14 **
15 ** You should have received a copy of the GNU General Public License
16 ** along with this program. If not, see <http://www.gnu.org/licenses/>.
17 */
18 
19 
20 #pragma once
21 
22 #ifndef EVALUATOR_SPLINE_HPP
23 #define EVALUATOR_SPLINE_HPP
24 
25 #include "../lib3d/matrix4.hpp"
26 
27 
28 namespace cpe
29 {
32  {
33  public:
34 
35  // ********************************************* //
36  // ********************************************* //
37  // Constructor
38  // ********************************************* //
39  // ********************************************* //
40 
43 
44  // ********************************************* //
45  // ********************************************* //
46  // Evaluation
47  // ********************************************* //
48  // ********************************************* //
49 
51  float operator()(float u,float v) const;
52 
54  float diff_u(float u,float v) const;
56  float diff_v(float u,float v) const;
57 
58  private:
59 
62 
63  };
64 }
65 
66 #endif
float diff_u(float u, float v) const
Evaluation of the derivative with respect to u at the (u,v) parameters.
Definition: evaluator_spline.cpp:45
float operator()(float u, float v) const
Evaluation of the value of the interpolation at the (u,v) parameters.
Definition: evaluator_spline.cpp:34
cpe::matrix4 P
Internal storage for the patch values.
Definition: evaluator_spline.hpp:61
Matrix 4x4.
Definition: matrix4.hpp:37
Definition: evaluator_spline.hpp:31
float diff_v(float u, float v) const
Evaluation of the derivative with respect to v at the (u,v) parameters.
Definition: evaluator_spline.cpp:56
evaluator_spline(const cpe::matrix4 &P)
Direct constructor given a patch.
Definition: evaluator_spline.cpp:28