summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacobPalecki <[email protected]>2021-01-22 19:00:00 -0800
committerGitHub <[email protected]>2021-01-22 19:00:00 -0800
commitbcaa6758c4da950a5573795e040597f552d98f97 (patch)
treed5fbd7e2dfb8db13df3c33f1da5c0bdc41900502
parentMerge pull request #66 from a1xd/1.4-tweaks (diff)
parentFix graph for lp_norm != 1 (diff)
downloadrawaccel-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.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);