mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 09:32:55 +08:00
Mention coordinate space
This commit is contained in:
parent
d83b9ef0e4
commit
a969914d6e
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user