summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Palecki <[email protected]>2021-01-21 22:22:28 -0800
committerJacob Palecki <[email protected]>2021-01-21 22:22:28 -0800
commit6d708937a10c418450fe480d622c9dd664acd2ea (patch)
treed5fbd7e2dfb8db13df3c33f1da5c0bdc41900502
parentMerge pull request #66 from a1xd/1.4-tweaks (diff)
downloadrawaccel-6d708937a10c418450fe480d622c9dd664acd2ea.tar.xz
rawaccel-6d708937a10c418450fe480d622c9dd664acd2ea.zip
Fix graph for lp_norm != 1
-rw-r--r--grapher/Models/Calculations/AccelCalculator.cs3
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);