Skip to content

Commit

Permalink
move comment
Browse files Browse the repository at this point in the history
  • Loading branch information
OliBomby committed Dec 3, 2023
1 parent 23dc4e7 commit 5e075ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion osu.Framework/Utils/PathApproximator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -639,7 +639,6 @@ public void Interpolate(float[] x, float[,] result)
/// <returns>Matrix array of B-spline basis function values.</returns>
private static float[,] generateBSplineWeights(int numControlPoints, int numTestPoints, int degree)
{
// Calculate the basis function values using the Cox-de Boor recursion formula
if (numControlPoints < 2)
throw new ArgumentOutOfRangeException(nameof(numControlPoints), $"{nameof(numControlPoints)} must be >=2 but was {numControlPoints}.");

Expand All @@ -649,6 +648,7 @@ public void Interpolate(float[] x, float[,] result)
if (degree < 0 || degree >= numControlPoints)
throw new ArgumentOutOfRangeException(nameof(degree), $"{nameof(degree)} must be >=0 and <{nameof(numControlPoints)} but was {degree}.");

// Calculate the basis function values using the Cox-de Boor recursion formula
// Generate an open uniform knot vector from 0 to 1
float[] x = linspace(0, 1, numTestPoints);
float[] knots = new float[numControlPoints + degree + 1];
Expand Down

0 comments on commit 5e075ad

Please sign in to comment.