| 1626 | //----------------------------------------------------------------------------- |
| 1627 | |
| 1628 | static inline int AxisPrecision(const ImPlotAxis& axis) { |
| 1629 | const double range = axis.Ticker.TickCount() > 1 ? (axis.Ticker.Ticks[1].PlotPos - axis.Ticker.Ticks[0].PlotPos) : axis.Range.Size(); |
| 1630 | return Precision(range); |
| 1631 | } |
| 1632 | |
| 1633 | static inline double RoundAxisValue(const ImPlotAxis& axis, double value) { |
| 1634 | return RoundTo(value, AxisPrecision(axis)); |
no test coverage detected