1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-22 16:47:24 +08:00

Mention coordinate space

This commit is contained in:
smoogipoo 2019-10-24 18:24:22 +09:00
parent d83b9ef0e4
commit a969914d6e

View File

@ -131,7 +131,7 @@ namespace osu.Game.Screens.Edit.Compose.Components
/// <summary>
/// Snaps a distance by the snap distance of this grid.
/// </summary>
/// <param name="distance">The distance to snap.</param>
/// <param name="distance">The distance to snap in coordinate space local to this <see cref="DistanceSnapGrid"/>.</param>
/// <returns>The snapped distance.</returns>
public float GetSnappedDistance(float distance) => (int)(distance / DistanceSpacing) * DistanceSpacing;