diff options
| author | JacobPalecki <[email protected]> | 2021-01-22 19:00:00 -0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-01-22 19:00:00 -0800 |
| commit | bcaa6758c4da950a5573795e040597f552d98f97 (patch) | |
| tree | d5fbd7e2dfb8db13df3c33f1da5c0bdc41900502 | |
| parent | Merge pull request #66 from a1xd/1.4-tweaks (diff) | |
| parent | Fix graph for lp_norm != 1 (diff) | |
| download | rawaccel-bcaa6758c4da950a5573795e040597f552d98f97.tar.xz rawaccel-bcaa6758c4da950a5573795e040597f552d98f97.zip | |
Merge pull request #67 from JacobPalecki/graph_fix
Fix graph for lp_norm
| -rw-r--r-- | grapher/Models/Calculations/AccelCalculator.cs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/grapher/Models/Calculations/AccelCalculator.cs b/grapher/Models/Calculations/AccelCalculator.cs index 42b7347..60c6eaa 100644 --- a/grapher/Models/Calculations/AccelCalculator.cs +++ b/grapher/Models/Calculations/AccelCalculator.cs @@ -307,8 +307,7 @@ namespace grapher.Models.Calculations foreach (var slowMoveX in SlowMovements) { - var slowMoveY = slowMoveX; - var ratio = slowMoveX > 0.0 ? slowMoveY / slowMoveX : 1; + var slowMoveY = 0.0; var ceilX = (int)Math.Round(slowMoveX*50); var ceilY = (int)Math.Round(slowMoveY*50); var ceilMagnitude = Magnitude(ceilX, ceilY); |