此为 Mathematica 7 文档,内容基于更早版本的 Wolfram 语言
查看最新文档(版本11.2)

SplineFunction

As of Version 7.0, some of the functionality of the Splines Package is now built into the Mathematica kernel. RightSkeleton
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.
  • 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.
Needs["Splines`"]
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]=