···8 public class BindableDouble : BindableNumber<double>
9 {
10 // Take 50% of the precision to ensure the value doesn't underflow and return true for non-default values.
11- public override bool IsDefault => MathUtils.Precision.AlmostEquals(Value, Default, Precision / 2);
1213 protected override double DefaultMinValue => double.MinValue;
14 protected override double DefaultMaxValue => double.MaxValue;
···8 public class BindableDouble : BindableNumber<double>
9 {
10 // Take 50% of the precision to ensure the value doesn't underflow and return true for non-default values.
11+ public override bool IsDefault => Utils.Precision.AlmostEquals(Value, Default, Precision / 2);
1213 protected override double DefaultMinValue => double.MinValue;
14 protected override double DefaultMaxValue => double.MaxValue;
+1-1
osu.Framework/Bindables/BindableFloat.cs
···8 public class BindableFloat : BindableNumber<float>
9 {
10 // Take 50% of the precision to ensure the value doesn't underflow and return true for non-default values.
11- public override bool IsDefault => MathUtils.Precision.AlmostEquals(Value, Default, Precision / 2);
1213 protected override float DefaultMinValue => float.MinValue;
14 protected override float DefaultMaxValue => float.MaxValue;
···8 public class BindableFloat : BindableNumber<float>
9 {
10 // Take 50% of the precision to ensure the value doesn't underflow and return true for non-default values.
11+ public override bool IsDefault => Utils.Precision.AlmostEquals(Value, Default, Precision / 2);
1213 protected override float DefaultMinValue => float.MinValue;
14 protected override float DefaultMaxValue => float.MaxValue;
···2// See the LICENCE file in the repository root for full licence text.
34using osu.Framework.Bindables;
5-using osu.Framework.MathUtils;
67namespace osu.Framework.Graphics.Transforms
8{
···2// See the LICENCE file in the repository root for full licence text.
34using osu.Framework.Bindables;
5+using osu.Framework.Utils;
67namespace osu.Framework.Graphics.Transforms
8{
···1// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
2// See the LICENCE file in the repository root for full licence text.
34-using osu.Framework.MathUtils;
5using System;
6using System.Collections.Concurrent;
7using System.Reflection.Emit;
···1// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
2// See the LICENCE file in the repository root for full licence text.
34+using osu.Framework.Utils;
5using System;
6using System.Collections.Concurrent;
7using System.Reflection.Emit;
···5using System.Collections.Generic;
6using osuTK;
78-namespace osu.Framework.MathUtils
9{
10 /// <summary>
11 /// Helper methods to approximate a path by interpolating a sequence of control points.
···5using System.Collections.Generic;
6using osuTK;
78+namespace osu.Framework.Utils
9{
10 /// <summary>
11 /// Helper methods to approximate a path by interpolating a sequence of control points.