Curve::Spline class reference
[Core module]

Declaration  

#include <Goptical/Curve/Spline>

namespace Goptical {
namespace Curve {
class Spline;
};
};

This class is a member of the Curve namespace.

Inheritance  


 
 

 
 


 
 

 
 


 
 

 
 


Description  

This class uses a 1d discrete data set to define a rotationally symmetric sagitta/gradient curve. Several data interpolations algorithm are available allowing use of Smooth Cubic spline interpolation with or without prescribed derivative/gradient data.

See also Data::DiscreteSet class.

Members  

See also the full member list section for this class.

Inherited members  

Functions  

Members detail  

Spline()  

Create an empty spline curve with no defined point

~Spline()  

No documentation available

virtual double derivative(double r) const  

This virtual function overrides the derivative virtual function defined in the Rotational base abstract class.

Documentation inherited from base class:

Get curve derivative at specified distance from origin.

  • r: distance from curve origin (0, 0)

void fit(const Rotational &c, double radius, unsigned int points)  

Clear all points and fit to an other rotationally symmetric curve.

  • c: Curve to fit
  • radius: Maximum radius where curve is defined
  • points: Number of sample points

const Data::DiscreteSet & get_data() const  

Get sagitta/derivative data container

Data::DiscreteSet & get_data()  

get sagitta/derivative data container

virtual double sagitta(double r) const  

This virtual function implements the sagitta pure function declared in the Rotational base abstract class.

Documentation inherited from base class:

Get curve sagitta at specified distance from origin.

  • r: distance from curve origin (0, 0)

Valid XHTML 1.0 StrictGenerated by diaxen on Sun Jan 8 00:47:23 2012 using MkDoc