Return the number of control points
function getNumberControlPoints2 extends Modelica.Icons.Function; input Real r[:, :] "r[i,:] is position vector to point i on the curve"; input Real T[size(r, 1), 3, 3] "T[i,:,:] is transformation matrix from base frame to path frame at point i"; input Integer degree "degree of the Bspline"; output Integer ncontrol "number of control points"; end getNumberControlPoints2;