Evaluate Bspline at one parameter safely, i.e. points outside the domain of the spline are moved inside the domain.
function safeEvaluate 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"; end safeEvaluate;