| 689 | struct Fitter2 { |
| 690 | Fitter2(const _Getter1& getter1, const _Getter2& getter2) : Getter1(getter1), Getter2(getter2) { } |
| 691 | void Fit(ImPlotAxis& x_axis, ImPlotAxis& y_axis) const { |
| 692 | for (int i = 0; i < Getter1.Count; ++i) { |
| 693 | ImPlotPoint p = Getter1(i); |
| 694 | x_axis.ExtendFitWith(y_axis, p.x, p.y); |
| 695 | y_axis.ExtendFitWith(x_axis, p.y, p.x); |
| 696 | } |
| 697 | for (int i = 0; i < Getter2.Count; ++i) { |
| 698 | ImPlotPoint p = Getter2(i); |
| 699 | x_axis.ExtendFitWith(y_axis, p.x, p.y); |
| 700 | y_axis.ExtendFitWith(x_axis, p.y, p.x); |
| 701 | } |
| 702 | } |
| 703 | const _Getter1& Getter1; |
| 704 | const _Getter2& Getter2; |
| 705 | }; |
nothing calls this directly
no test coverage detected