Skip to content

Commit

Permalink
Add xmldoc to getDistanceDistribution
Browse files Browse the repository at this point in the history
  • Loading branch information
OliBomby committed Dec 3, 2023
1 parent 30a924f commit 46c9471
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions osu.Framework/Utils/PathApproximator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -553,6 +553,11 @@ private static float[] linspace(float start, float end, int count)
return result;
}

/// <summary>
/// Calculates a normalized cumulative distribution for the Euclidean distance between points on a piecewise-linear path.
/// </summary>
/// <param name="points">(2, n) shape array which represents the points of the piecewise-linear path.</param>
/// <param name="result">n-length array to write the result to.</param>
private static void getDistanceDistribution(float[,] points, float[] result)
{
int m = points.GetLength(1);
Expand Down

0 comments on commit 46c9471

Please sign in to comment.