Input. X coordinates to fit.
Input. Y coordinates to fit.
Optional slope constraint for the first point. Single.NaN means no constraint.
Optional slope constraint for the final point. Single.NaN means no constraint.
Turn on console output. Default is false.
Fit Method
Compute spline coefficients for the specified x,y points. This does the "natural spline" style for ends. This can extrapolate off the ends of the splines. You must provide points in X sort order.
Syntax
public void Fit( 
   double[] x,
   double[] y,
   double startSlope,
   double endSlope,
   bool debug
)

Parameters

x
Input. X coordinates to fit.
y
Input. Y coordinates to fit.
startSlope
Optional slope constraint for the first point. Single.NaN means no constraint.
endSlope
Optional slope constraint for the final point. Single.NaN means no constraint.
debug
Turn on console output. Default is false.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also