/Users/enrico/Ricerca/develop/PINS/pins-mechatronix/LibSources/submodules/Splines/src/Splines/SplineBilinear.hxx Source FileΒΆ

Splines: /Users/enrico/Ricerca/develop/PINS/pins-mechatronix/LibSources/submodules/Splines/src/Splines/SplineBilinear.hxx Source File
Splines
SplineBilinear.hxx
1/*--------------------------------------------------------------------------*\
2 | |
3 | Copyright (C) 2016 |
4 | |
5 | , __ , __ |
6 | /|/ \ /|/ \ |
7 | | __/ _ ,_ | __/ _ ,_ |
8 | | \|/ / | | | | \|/ / | | | |
9 | |(__/|__/ |_/ \_/|/|(__/|__/ |_/ \_/|/ |
10 | /| /| |
11 | \| \| |
12 | |
13 | Enrico Bertolazzi |
14 | Dipartimento di Ingegneria Industriale |
15 | Universita` degli Studi di Trento |
16 | email: enrico.bertolazzi@unitn.it |
17 | |
18\*--------------------------------------------------------------------------*/
19
20/*\
21 | ____ _ _ _ ____ _ _
22 | | __ )(_) (_)_ __ ___ __ _ _ __/ ___| _ __ | (_)_ __ ___
23 | | _ \| | | | '_ \ / _ \/ _` | '__\___ \| '_ \| | | '_ \ / _ \
24 | | |_) | | | | | | | __/ (_| | | ___) | |_) | | | | | | __/
25 | |____/|_|_|_|_| |_|\___|\__,_|_| |____/| .__/|_|_|_| |_|\___|
26 | |_|
27\*/
28
29namespace Splines {
30
32 class BilinearSpline : public SplineSurf {
33
34 void make_spline() override {}
35
36 using SplineSurf::m_nx;
37 using SplineSurf::m_ny;
38
39 using SplineSurf::m_X;
40 using SplineSurf::m_Y;
41 using SplineSurf::m_Z;
42
43 public:
44
50 BilinearSpline( string const & name = "BilinearSpline" )
52 {}
53
57 ~BilinearSpline() override {}
58
59 real_type eval( real_type x, real_type y ) const override;
60
61 void D( real_type x, real_type y, real_type d[3] ) const override;
62 real_type Dx( real_type x, real_type y ) const override;
63 real_type Dy( real_type x, real_type y ) const override;
64
65 void DD( real_type x, real_type y, real_type dd[6] ) const override;
66 real_type Dxx( real_type , real_type ) const override { return 0; }
67 real_type Dxy( real_type , real_type ) const override { return 0; }
68 real_type Dyy( real_type , real_type ) const override { return 0; }
69
70 void write_to_stream( ostream_type & s ) const override;
71 char const * type_name() const override;
72
73 };
74
75}
76
77// EOF: SplineBilinear.hxx
bilinear spline base class
Definition SplineBilinear.hxx:32
void write_to_stream(ostream_type &s) const override
Definition SplineBilinear.cc:124
real_type Dxx(real_type, real_type) const override
Definition SplineBilinear.hxx:66
void D(real_type x, real_type y, real_type d[3]) const override
Definition SplineBilinear.cc:95
real_type Dx(real_type x, real_type y) const override
Definition SplineBilinear.cc:63
~BilinearSpline() override
Definition SplineBilinear.hxx:57
real_type Dxy(real_type, real_type) const override
Definition SplineBilinear.hxx:67
void DD(real_type x, real_type y, real_type dd[6]) const override
Definition SplineBilinear.cc:116
char const * type_name() const override
Definition SplineBilinear.cc:148
real_type eval(real_type x, real_type y) const override
Definition SplineBilinear.cc:43
real_type Dy(real_type x, real_type y) const override
Definition SplineBilinear.cc:79
BilinearSpline(string const &name="BilinearSpline")
Definition SplineBilinear.hxx:50
real_type Dyy(real_type, real_type) const override
Definition SplineBilinear.hxx:68
Definition Splines.hh:1139
string const & name() const
Definition Splines.hh:1313
Definition SplineAkima.cc:50
double real_type
Floating point type for splines.
Definition Splines.hh:57