diff options
| author | Jacob Palecki <[email protected]> | 2020-09-25 23:03:00 -0700 |
|---|---|---|
| committer | Jacob Palecki <[email protected]> | 2020-09-25 23:03:00 -0700 |
| commit | 206cdc1712d02d15b85393a57ca744fbc014a55c (patch) | |
| tree | 5d28926aee87c077ffc4ed7222469bbf2f28bd2c /grapher/Models/Calculations/AccelCalculator.cs | |
| parent | Last mouse move perfetly responsive at 100 FPS (diff) | |
| download | rawaccel-206cdc1712d02d15b85393a57ca744fbc014a55c.tar.xz rawaccel-206cdc1712d02d15b85393a57ca744fbc014a55c.zip | |
SetActive changes field default, bugs fixed
Diffstat (limited to 'grapher/Models/Calculations/AccelCalculator.cs')
| -rw-r--r-- | grapher/Models/Calculations/AccelCalculator.cs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/grapher/Models/Calculations/AccelCalculator.cs b/grapher/Models/Calculations/AccelCalculator.cs index 0838154..e2f7bcc 100644 --- a/grapher/Models/Calculations/AccelCalculator.cs +++ b/grapher/Models/Calculations/AccelCalculator.cs @@ -90,7 +90,7 @@ namespace grapher.Models.Calculations continue; } - while (Math.Pow(10,log) < outMagnitude) + while (Math.Pow(10,log) < outMagnitude && logIndex < data.LogToIndex.Length) { data.LogToIndex[logIndex] = index; log += 0.01; @@ -140,7 +140,7 @@ namespace grapher.Models.Calculations index--; - while (log <= 4.0) + while (log <= 5.0) { data.LogToIndex[logIndex] = index; log += 0.01; @@ -193,7 +193,7 @@ namespace grapher.Models.Calculations continue; } - while (Math.Pow(10,log) < magnitudeWithoutSens) + while (Math.Pow(10,log) < magnitudeWithoutSens && logIndex < data.Combined.LogToIndex.Length) { data.Combined.LogToIndex[logIndex] = index; log += 0.01; @@ -290,7 +290,7 @@ namespace grapher.Models.Calculations index--; - while (log <= 4.0) + while (log <= 5.0) { data.Combined.LogToIndex[logIndex] = index; log += 0.01; |