MCPcopy Create free account
hub / github.com/emilk/egui_plot / dvalue_dpos

Method dvalue_dpos

egui_plot/src/axis.rs:579–581  ·  view source on GitHub ↗

delta value / delta position = how much ground do we cover in "plot space" per ui point?

(&self)

Source from the content-addressed store, hash-verified

577 /// delta value / delta position = how much ground do we cover in "plot
578 /// space" per ui point?
579 pub fn dvalue_dpos(&self) -> [f64; 2] {
580 [1.0 / self.dpos_dvalue_x(), 1.0 / self.dpos_dvalue_y()]
581 }
582
583 /// scale.x/scale.y ratio.
584 ///

Callers 5

render_axis_widgetsMethod · 0.80
paint_grid_directionMethod · 0.80
translate_boundsMethod · 0.80
default_values_formatMethod · 0.80
default_values_formatMethod · 0.80

Calls 2

dpos_dvalue_xMethod · 0.80
dpos_dvalue_yMethod · 0.80

Tested by

no test coverage detected