Evaluate Bspline at one parameter safely, i.e. points outside the domain of the spline are moved inside the domain.
function safeEvaluateDer extends Modelica.Icons.Function; input Data spline "Bspline to be evaluated"; input Real u "Parameter value at which Bspline shall be evaluated"; output Real x[spline.ndim] "Value of Bspline at u"; output Real xd[spline.ndim] "First derivative of Bspline at u"; end safeEvaluateDer;