Classes | Functions
vgl_cubic_spline_3d.h File Reference

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

#include <iostream>
#include <utility>
#include <vector>
#include <cassert>
#include <vgl/vgl_plane_3d.h>
#include <vgl/vgl_point_3d.h>
#include <vgl/vgl_vector_3d.h>

Go to the source code of this file.

Classes

class  vgl_cubic_spline_3d< Type >
 

Functions

template<class Type >
std::ostream & operator<< (std::ostream &ostr, vgl_cubic_spline_3d< Type > const &spl)
 
template<class Type >
std::istream & operator>> (std::istream &istr, vgl_cubic_spline_3d< 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 August 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 any segment 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_3d.h.

Function Documentation

◆ operator<<()

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

Definition at line 217 of file vgl_cubic_spline_3d.h.

◆ operator>>()

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

Definition at line 236 of file vgl_cubic_spline_3d.h.