From 5e075ad298652603054be8117430893d0d66433a Mon Sep 17 00:00:00 2001 From: OliBomby Date: Sun, 3 Dec 2023 19:15:05 +0100 Subject: [PATCH] move comment --- osu.Framework/Utils/PathApproximator.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osu.Framework/Utils/PathApproximator.cs b/osu.Framework/Utils/PathApproximator.cs index 882dd50f39..490a04a230 100644 --- a/osu.Framework/Utils/PathApproximator.cs +++ b/osu.Framework/Utils/PathApproximator.cs @@ -639,7 +639,6 @@ public void Interpolate(float[] x, float[,] result) /// Matrix array of B-spline basis function values. 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}."); @@ -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];