SplineFunction

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


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 , you first need to load the Splines Package using .
  • The object generated with SplineFit[{pt1, pt2, ...}, type] is parametrized such that a parameter value of 0 corresponds to , 1 corresponds to , 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 correspond to the original points:

In[3]:=
Click for copyable input
Out[3]=
New to Mathematica? Find your learning path »
Have a question? Ask support »