1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-24 07:27:29 +08:00

Added xmldoc to public methods

This commit is contained in:
OliBomby 2022-10-31 11:39:14 +01:00
parent e38ba5e4c6
commit 414e21c657

View File

@ -40,6 +40,12 @@ namespace osu.Game.Rulesets.Objects
};
public static IEnumerable<Vector2> ConvertToLegacyBezier(IList<PathControlPoint> controlPoints, Vector2 position)
/// <summary>
/// Converts a slider path to bezier control point positions compatible with the legacy osu! client.
/// </summary>
/// <param name="controlPoints">The control points of the path.</param>
/// <param name="position">The offset for the whole path.</param>
/// <returns>The list of legacy bezier control point positions.</returns>
{
Vector2[] vertices = new Vector2[controlPoints.Count];
for (int i = 0; i < controlPoints.Count; i++)
@ -90,6 +96,11 @@ namespace osu.Game.Rulesets.Objects
return result;
}
/// <summary>
/// Converts a path of control points to an identical path using only Bezier type control points.
/// </summary>
/// <param name="controlPoints">The control points of the path.</param>
/// <returns>The list of bezier control points.</returns>
public static List<PathControlPoint> ConvertToModernBezier(IList<PathControlPoint> controlPoints)
{
Vector2[] vertices = new Vector2[controlPoints.Count];