Refactor sliders to have more central position/progress calculations.

This commit is contained in:
Dean Herbert
2017-03-06 11:11:29 +09:00
parent cb002ce7af
commit 56922b66be
3 changed files with 31 additions and 9 deletions

View File

@ -186,10 +186,10 @@ namespace osu.Game.Modes.Osu.Objects
}
/// <summary>
/// Computes the position on the slider at a given progress that ranges from 0 (beginning of the slider)
/// to 1 (end of the slider).
/// Computes the position on the slider at a given progress that ranges from 0 (beginning of the curve)
/// to 1 (end of the curve).
/// </summary>
/// <param name="progress">Ranges from 0 (beginning of the slider) to 1 (end of the slider).</param>
/// <param name="progress">Ranges from 0 (beginning of the curve) to 1 (end of the curve).</param>
/// <returns></returns>
public Vector2 PositionAt(double progress)
{