diff options
| author | Jacob Palecki <[email protected]> | 2020-09-01 02:39:09 -0700 |
|---|---|---|
| committer | Jacob Palecki <[email protected]> | 2020-09-01 02:39:09 -0700 |
| commit | 4aa2f3ed741dcbd39233e125a34cac8163267d8d (patch) | |
| tree | 59399d8d793e7aa35c3a79fe369d19f7c3935ae4 /grapher/Models/Calculations | |
| parent | Add constants class and separate classes into regions (diff) | |
| download | rawaccel-4aa2f3ed741dcbd39233e125a34cac8163267d8d.tar.xz rawaccel-4aa2f3ed741dcbd39233e125a34cac8163267d8d.zip | |
Move constants to central class
Diffstat (limited to 'grapher/Models/Calculations')
| -rw-r--r-- | grapher/Models/Calculations/AccelCalculator.cs | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/grapher/Models/Calculations/AccelCalculator.cs b/grapher/Models/Calculations/AccelCalculator.cs index 0f0a60a..4e44902 100644 --- a/grapher/Models/Calculations/AccelCalculator.cs +++ b/grapher/Models/Calculations/AccelCalculator.cs @@ -1,5 +1,4 @@ -using grapher.Constants; -using grapher.Models.Serialized; +using grapher.Models.Serialized; using System; using System.Collections.Generic; using System.Collections.ObjectModel; @@ -179,9 +178,9 @@ namespace grapher.Models.Calculations public void ScaleByMouseSettings() { var dpiPollFactor = DPI.Data / PollRate.Data; - CombinedMaxVelocity = dpiPollFactor * AccelGUIConstants.MaxMultiplier; - Increment = (int) Math.Floor(CombinedMaxVelocity / AccelGUIConstants.Resolution); - XYMaxVelocity = CombinedMaxVelocity * AccelGUIConstants.XYToCombinedRatio; + CombinedMaxVelocity = dpiPollFactor * Constants.MaxMultiplier; + Increment = (int)Math.Floor(CombinedMaxVelocity / Constants.Resolution); + XYMaxVelocity = CombinedMaxVelocity * Constants.XYToCombinedRatio; MagnitudesCombined = GetMagnitudes(); MagnitudesX = GetMagnitudesX(); MagnitudesY = GetMagnitudesY(); |