Classes | Functions
vgl_cubic_spline_2d.h File Reference

A 3-d cubic spline curve defined by a set of knots (3-d points) More...

#include <iosfwd>
#include <utility>
#include <vector>
#include <cassert>
#include <vgl/vgl_point_2d.h>
#include <vgl/vgl_vector_2d.h>

Go to the source code of this file.

Classes

class  vgl_cubic_spline_2d< Type >
 

Functions

template<class Type >
std::ostream & operator<< (std::ostream &ostr, vgl_cubic_spline_2d< Type > const &spl)
 stream operators. More...
 
template<class Type >
std::istream & operator>> (std::istream &istr, vgl_cubic_spline_2d< Type > &spl)
 

Detailed Description

A 3-d cubic spline curve defined by a set of knots (3-d points)

Author
J.L. Mundy
 Modifications
 Initial version Sept. 25,  2015

the current algorithm uses the Catmull-Rom spline

The parameter s is used in estimating the first derivative of the function at the ends of the interval: f'(0) = s*(f(1)-f(-1)), f'(1) = s*(f(2)-f(1)); the typical value of s is 0.5

computations are simple enough so everything is in the .h file

Definition in file vgl_cubic_spline_2d.h.

Function Documentation

◆ operator<<()

template<class Type >
std::ostream& operator<< ( std::ostream &  ostr,
vgl_cubic_spline_2d< Type > const &  spl 
)

stream operators.

Definition at line 204 of file vgl_cubic_spline_2d.h.

◆ operator>>()

template<class Type >
std::istream& operator>> ( std::istream &  istr,
vgl_cubic_spline_2d< Type > &  spl 
)

Definition at line 223 of file vgl_cubic_spline_2d.h.