MCPcopy Create free account
hub / github.com/IppClub/Dora-SSR / FitterRect

Class FitterRect

Source/3rdParty/implot/implot_items.cpp:866–882  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

864};
865
866struct 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

Callers 4

PlotPieChartExFunction · 0.85
PlotHeatmapFunction · 0.85
PlotHistogram2DFunction · 0.85
PlotImageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected