title: B-Spline tries to connect itself to the origin when t ~= 1.0
body: <p>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.</p>
  <p>Unfortunately I cannot provide code, but I can't imagine that this is unexplainable.</p>
  <p>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 &lt;= t &lt;= 1.0. The algorithms I am following come from the B-Spline page at <a href="https://www.geometrictools.com/Documentation/BSplineCurveLeastSquaresFit.pdf" rel="nofollow noreferrer">https://www.geometrictools.com/Documentation/BSplineCurveLeastSquaresFit.pdf</a>.</p>