/// <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));
public double ProgressAt(double progress) => CurveObject.ProgressAt(progress);