g4tools  5.4.0
Public Member Functions | Protected Attributes | List of all members
tools::spline::quintic_poly Class Reference
Inheritance diagram for tools::spline::quintic_poly:
Inheritance graph
[legend]
Collaboration diagram for tools::spline::quintic_poly:
Collaboration graph
[legend]

Public Member Functions

 quintic_poly ()
 
 quintic_poly (double x, double y, double b, double c, double d, double e, double f)
 
 quintic_poly (quintic_poly const &a_from)
 
quintic_polyoperator= (quintic_poly const &a_from)
 
double & B ()
 
double & C ()
 
double & D ()
 
double & E ()
 
double & F ()
 
double eval (double x) const
 
- Public Member Functions inherited from tools::spline::base_poly
 base_poly ()
 
 base_poly (double x, double y)
 
virtual ~base_poly ()
 
 base_poly (base_poly const &a_from)
 
base_polyoperator= (base_poly const &a_from)
 
const double & X () const
 
const double & Y () const
 
double & X ()
 
double & Y ()
 

Protected Attributes

double fB
 
double fC
 
double fD
 
double fE
 
double fF
 
- Protected Attributes inherited from tools::spline::base_poly
double fX
 
double fY
 

Detailed Description

Definition at line 67 of file spline.

Constructor & Destructor Documentation

◆ quintic_poly() [1/3]

tools::spline::quintic_poly::quintic_poly ( )
inline

Definition at line 69 of file spline.

69 :fB(0), fC(0), fD(0), fE(0), fF(0) {}

◆ quintic_poly() [2/3]

tools::spline::quintic_poly::quintic_poly ( double  x,
double  y,
double  b,
double  c,
double  d,
double  e,
double  f 
)
inline

Definition at line 70 of file spline.

71  :base_poly(x,y), fB(b), fC(c), fD(d), fE(e), fF(f) {}

◆ quintic_poly() [3/3]

tools::spline::quintic_poly::quintic_poly ( quintic_poly const &  a_from)
inline

Definition at line 73 of file spline.

74  :base_poly(a_from)
75  ,fB(a_from.fB),fC(a_from.fC),fD(a_from.fD),fE(a_from.fE),fF(a_from.fF) {}

Member Function Documentation

◆ B()

double& tools::spline::quintic_poly::B ( )
inline

Definition at line 87 of file spline.

87 {return fB;}

◆ C()

double& tools::spline::quintic_poly::C ( )
inline

Definition at line 88 of file spline.

88 {return fC;}

◆ D()

double& tools::spline::quintic_poly::D ( )
inline

Definition at line 89 of file spline.

89 {return fD;}

◆ E()

double& tools::spline::quintic_poly::E ( )
inline

Definition at line 90 of file spline.

90 {return fE;}

◆ eval()

double tools::spline::quintic_poly::eval ( double  x) const
inline

Definition at line 92 of file spline.

92 {double dx=x-fX;return (fY+dx*(fB+dx*(fC+dx*(fD+dx*(fE+dx*fF)))));}

◆ F()

double& tools::spline::quintic_poly::F ( )
inline

Definition at line 91 of file spline.

91 {return fF;}

◆ operator=()

quintic_poly& tools::spline::quintic_poly::operator= ( quintic_poly const &  a_from)
inline

Definition at line 76 of file spline.

76  {
77  if(this==&a_from) return *this;
78  base_poly::operator=(a_from);
79  fB = a_from.fB;
80  fC = a_from.fC;
81  fD = a_from.fD;
82  fE = a_from.fE;
83  fF = a_from.fF;
84  return *this;
85  }

Member Data Documentation

◆ fB

double tools::spline::quintic_poly::fB
protected

Definition at line 94 of file spline.

◆ fC

double tools::spline::quintic_poly::fC
protected

Definition at line 95 of file spline.

◆ fD

double tools::spline::quintic_poly::fD
protected

Definition at line 96 of file spline.

◆ fE

double tools::spline::quintic_poly::fE
protected

Definition at line 97 of file spline.

◆ fF

double tools::spline::quintic_poly::fF
protected

Definition at line 98 of file spline.


The documentation for this class was generated from the following file:
tools::spline::base_poly::operator=
base_poly & operator=(base_poly const &a_from)
Definition: spline:25
tools::spline::base_poly::base_poly
base_poly()
Definition: spline:20
tools::spline::quintic_poly::fF
double fF
Definition: spline:98
tools::spline::quintic_poly::fD
double fD
Definition: spline:96
tools::spline::base_poly::fX
double fX
Definition: spline:37
tools::spline::quintic_poly::fB
double fB
Definition: spline:94
tools::spline::quintic_poly::fC
double fC
Definition: spline:95
tools::spline::quintic_poly::fE
double fE
Definition: spline:97
tools::spline::base_poly::fY
double fY
Definition: spline:38