# w2img::CatmullRomSpline Class Reference

List of all members.

## Detailed Description

Computes interpolating splines using the Catmull Rom algorithm.

This spline is special in that the interpolating spline passes exactly through the specified control points.

Catmull, Edwin and Rom, Raphael, A class of local interpolating splines, in R.E. Barnhill and R.F. Riesenfe}d (eds.) Computer Aided Geometric Design, Academic Press, New York, 1974, 317-326

Author:
Lakshman
Version:
Id
w2img_CatmullRomSpline.h,v 1.2 2010/02/24 21:48:47 lakshman Exp

## Static Public Member Functions

static std::vector< float > interpolate (const std::vector< float > &x1, const std::vector< float > &y1, const std::vector< float > &x2)
static std::vector< float > sort_and_interpolate (const std::vector< float > &x1, const std::vector< float > &y1, const std::vector< float > &x2)

## Member Function Documentation

 static std::vector w2img::CatmullRomSpline::interpolate ( const std::vector< float > & x1, const std::vector< float > & y1, const std::vector< float > & x2 ) ` [static]`

Returns:
y values for the supplied x2. Note that the x values have to be monotonically increasing See also sort_and_interpolate which will sort the x values before calling this method

 static std::vector w2img::CatmullRomSpline::sort_and_interpolate ( const std::vector< float > & x1, const std::vector< float > & y1, const std::vector< float > & x2 ) ` [static]`

Returns:
y values for the supplied x2. Will sort the x values before calling the interpolate method

Generated on Fri May 4 13:40:23 2012 for WDSS-IIw2algs by  1.4.7