diff --git a/osu.Game.Rulesets.Osu/Utils/OsuHitObjectGenerationUtils_Reposition.cs b/osu.Game.Rulesets.Osu/Utils/OsuHitObjectGenerationUtils_Reposition.cs
index 5f3719146f..ccc2529768 100644
--- a/osu.Game.Rulesets.Osu/Utils/OsuHitObjectGenerationUtils_Reposition.cs
+++ b/osu.Game.Rulesets.Osu/Utils/OsuHitObjectGenerationUtils_Reposition.cs
@@ -316,6 +316,11 @@ namespace osu.Game.Rulesets.Osu.Utils
);
}
+ ///
+ /// Estimate the centre of mass of a slider relative to its start position.
+ ///
+ /// The slider to process.
+ /// The centre of mass of the slider.
private static Vector2 calculateCentreOfMass(Slider slider)
{
if (slider.Distance < 1) return Vector2.Zero;
@@ -333,6 +338,11 @@ namespace osu.Game.Rulesets.Osu.Utils
return sum / count;
}
+ ///
+ /// Get the absolute rotation of a slider, defined as the angle from its start position to its end position.
+ ///
+ /// The slider to process.
+ /// The angle in radians.
private static float getSliderRotation(Slider slider)
{
var endPositionVector = slider.EndPosition - slider.Position;