示例#1
0
 /// <summary>
 /// Computes the position on the curve relative to how much of the <see cref="HitObject"/> has been completed.
 /// </summary>
 /// <param name="obj">The curve.</param>
 /// <param name="progress">[0, 1] where 0 is the start time of the <see cref="HitObject"/> and 1 is the end time of the <see cref="HitObject"/>.</param>
 /// <returns>The position on the curve.</returns>
 public static Vector2 CurvePositionAt(this IHasCurve obj, double progress)
 => obj.Path.PositionAt(obj.ProgressAt(progress));
示例#2
0
文件: Slider.cs 项目: zenithlight/osu
 public double ProgressAt(double progress) => CurveObject.ProgressAt(progress);