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