| 864 | }; |
| 865 | |
| 866 | struct FitterRect { |
| 867 | FitterRect(const ImPlotPoint& pmin, const ImPlotPoint& pmax) : |
| 868 | Pmin(pmin), |
| 869 | Pmax(pmax) |
| 870 | { } |
| 871 | FitterRect(const ImPlotRect& rect) : |
| 872 | FitterRect(rect.Min(), rect.Max()) |
| 873 | { } |
| 874 | void Fit(ImPlotAxis& x_axis, ImPlotAxis& y_axis) const { |
| 875 | x_axis.ExtendFitWith(y_axis, Pmin.x, Pmin.y); |
| 876 | y_axis.ExtendFitWith(x_axis, Pmin.y, Pmin.x); |
| 877 | x_axis.ExtendFitWith(y_axis, Pmax.x, Pmax.y); |
| 878 | y_axis.ExtendFitWith(x_axis, Pmax.y, Pmax.x); |
| 879 | } |
| 880 | const ImPlotPoint Pmin; |
| 881 | const ImPlotPoint Pmax; |
| 882 | }; |
| 883 | |
| 884 | //----------------------------------------------------------------------------- |
| 885 | // [SECTION] Transformers |
no outgoing calls
no test coverage detected