mirror of
https://github.com/osukey/osukey.git
synced 2025-07-03 01:09:57 +09:00
.NET Standard 2.1 implements Math.Clamp , use it instead of MathHelper.Clamp from osuTK.
This commit is contained in:
@ -246,7 +246,7 @@ namespace osu.Game.Rulesets.Objects
|
||||
|
||||
private double progressToDistance(double progress)
|
||||
{
|
||||
return MathHelper.Clamp(progress, 0, 1) * Distance;
|
||||
return Math.Clamp(progress, 0, 1) * Distance;
|
||||
}
|
||||
|
||||
private Vector2 interpolateVertices(int i, double d)
|
||||
|
Reference in New Issue
Block a user