1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 12:33:01 +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> /// <summary>
/// Snaps a distance by the snap distance of this grid. /// Snaps a distance by the snap distance of this grid.
/// </summary> /// </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> /// <returns>The snapped distance.</returns>
public float GetSnappedDistance(float distance) => (int)(distance / DistanceSpacing) * DistanceSpacing; public float GetSnappedDistance(float distance) => (int)(distance / DistanceSpacing) * DistanceSpacing;