mirror of
https://github.com/osukey/osukey.git
synced 2025-07-02 00:40:09 +09:00
Mention coordinate space
This commit is contained in:
@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user