fix: Flip call/put wing start comparison operators
This commit is contained in:
1 parent
c97887993f
commit
21300a858c
1 file changed
+6
-6
@@ -217,15 +217,15 @@ namespace mbts.spark {
|
||||
if (disp_graph != null) {
|
||||
return type switch {
|
||||
VolSurfaceGraphSeriesType.CandidateCallWing => disp_graph.all_points
|
||||
.Where(t => t.Item1 >= disp_graph.call_wing_start)
|
||||
.Where(t => t.Item1 <= disp_graph.call_wing_start)
|
||||
.Select(t => new GraphPointVM(t.Item1, t.Item2))
|
||||
.ToList(),
|
||||
VolSurfaceGraphSeriesType.CandidatePutWing => disp_graph.all_points
|
||||
.Where(t => t.Item1 <= disp_graph.put_wing_start)
|
||||
.Where(t => t.Item1 >= disp_graph.put_wing_start)
|
||||
.Select(t => new GraphPointVM(t.Item1, t.Item2))
|
||||
.ToList(),
|
||||
VolSurfaceGraphSeriesType.CandidateInnerCurve => disp_graph.all_points
|
||||
.Where(t => t.Item1 >= disp_graph.put_wing_start && t.Item1 <= disp_graph.call_wing_start)
|
||||
.Where(t => t.Item1.is_within_range(disp_graph.call_wing_start, disp_graph.put_wing_start))
|
||||
.Select(t => new GraphPointVM(t.Item1, t.Item2))
|
||||
.ToList(),
|
||||
VolSurfaceGraphSeriesType.CandidateControlPoints => Enumerable.Empty<GraphPointVM>(),
|
||||
@@ -254,15 +254,15 @@ namespace mbts.spark {
|
||||
if (disp_graph != null) {
|
||||
return type switch {
|
||||
VolSurfaceGraphSeriesType.CommittedCallWing => disp_graph.all_points
|
||||
.Where(t => t.Item1 >= disp_graph.call_wing_start)
|
||||
.Where(t => t.Item1 <= disp_graph.call_wing_start)
|
||||
.Select(t => new GraphPointVM(t.Item1, t.Item2))
|
||||
.ToList(),
|
||||
VolSurfaceGraphSeriesType.CommittedPutWing => disp_graph.all_points
|
||||
.Where(t => t.Item1 <= disp_graph.put_wing_start)
|
||||
.Where(t => t.Item1 >= disp_graph.put_wing_start)
|
||||
.Select(t => new GraphPointVM(t.Item1, t.Item2))
|
||||
.ToList(),
|
||||
VolSurfaceGraphSeriesType.CommittedInnerCurve => disp_graph.all_points
|
||||
.Where(t => t.Item1 >= disp_graph.put_wing_start && t.Item1 <= disp_graph.call_wing_start)
|
||||
.Where(t => t.Item1.is_within_range(disp_graph.call_wing_start, disp_graph.put_wing_start))
|
||||
.Select(t => new GraphPointVM(t.Item1, t.Item2))
|
||||
.ToList(),
|
||||
VolSurfaceGraphSeriesType.CommittedControlPoints => Enumerable.Empty<GraphPointVM>(),
|
||||
|
||||
Reference in new issue
Block a user