MCPcopy Create free account
hub / github.com/clementgallet/libTAS / Fit

Method Fit

src/external/imgui/implot_items.cpp:691–702  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

689struct 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};

Callers

nothing calls this directly

Calls 1

ExtendFitWithMethod · 0.80

Tested by

no test coverage detected