I have a few functions that I have written to calculate a B-spline curve, already given the control points and the desired order. They work fine, however when I input a parameter value of t that is near or equal to 1.0, the points that get plotted all to connect towards the origin.
Unfortunately I cannot provide code, but I can't imagine that this is unexplainable.
I am generating a uniform knot vector, with my first p + 1 knots being 0.0, and the same amount at the end being 1.0. My basis function uses Cox-de-boor recursion, and I am plotting points in the domain 0.0 <= t <= 1.0. The algorithms I am following come from the B-Spline page at https://www.geometrictools.com/Documentation/BSplineCurveLeastSquaresFit.pdf.