SplineFunction

As of Version 7.0, some of the functionality of the Splines Package is now built into the Wolfram Language kernel.

SplineFunction[type,domain,internal]
represents a spline function created by the SplineFit function parametrizing a curve with the parameter in the specified domain. When given a parameter value as an argument it returns the corresponding point on the curve.

DetailsDetails

  • To use SplineFunction, you first need to load the Splines Package using Needs["Splines`"].
  • The SplineFunction object generated with SplineFit[{pt1,pt2,},type] is parametrized such that a parameter value of 0 corresponds to pt1, 1 corresponds to pt2, etc.
  • Supported types are Cubic, Bezier and CompositeBezier.

ExamplesExamplesopen allclose all

Basic Examples  (1)Basic Examples  (1)

In[1]:=
Click for copyable input

Fit a Bézier spline to a set of four points:

In[2]:=
Click for copyable input
Out[2]=

The endpoints of the SplineFunction correspond to the original points:

In[3]:=
Click for copyable input
Out[3]=
Translate this page: