diff options
| author | Jacob Palecki <[email protected]> | 2021-01-18 17:39:10 -0800 |
|---|---|---|
| committer | Jacob Palecki <[email protected]> | 2021-01-18 17:39:10 -0800 |
| commit | 8c55ca08881b59943bc9dda193107cc8a117cf69 (patch) | |
| tree | 8c8ea7956a69c058d1829250a189b250b2659e7b /grapher/Models/Charts/ChartState/XYOneGraphState.cs | |
| parent | Fix xy anisotropy combining in gui (diff) | |
| download | rawaccel-8c55ca08881b59943bc9dda193107cc8a117cf69.tar.xz rawaccel-8c55ca08881b59943bc9dda193107cc8a117cf69.zip | |
Refactor for new graph calculation method
Diffstat (limited to 'grapher/Models/Charts/ChartState/XYOneGraphState.cs')
| -rw-r--r-- | grapher/Models/Charts/ChartState/XYOneGraphState.cs | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/grapher/Models/Charts/ChartState/XYOneGraphState.cs b/grapher/Models/Charts/ChartState/XYOneGraphState.cs index 4a755b6..14d8850 100644 --- a/grapher/Models/Charts/ChartState/XYOneGraphState.cs +++ b/grapher/Models/Charts/ChartState/XYOneGraphState.cs @@ -1,4 +1,5 @@ using grapher.Models.Calculations; +using grapher.Models.Calculations.Data; using grapher.Models.Serialized; namespace grapher.Models.Charts.ChartState @@ -9,15 +10,16 @@ namespace grapher.Models.Charts.ChartState ChartXY sensitivityChart, ChartXY velocityChart, ChartXY gainChart, - AccelData accelData, + EstimatedPoints xPoints, + EstimatedPoints yPoints, AccelCalculator accelCalculator) : base( sensitivityChart, velocityChart, gainChart, - accelData, accelCalculator) { + Data = new AccelDataXYDirectional(xPoints, yPoints, accelCalculator); TwoDotsPerGraph = true; } @@ -30,7 +32,7 @@ namespace grapher.Models.Charts.ChartState public override void MakeDots(double x, double y, double timeInMs) { - Data.CalculateDotsCombinedDiffSens(x, y, timeInMs, Settings); + Data.CalculateDots(x, y, timeInMs); } public override void Bind() |