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

Method dpos_dvalue_y

egui_plot/src/axis.rs:566–569  ·  view source on GitHub ↗

delta position / delta value = how many ui points per step in the Y axis in "plot space"

(&self)

Source from the content-addressed store, hash-verified

564 /// delta position / delta value = how many ui points per step in the Y axis
565 /// in "plot space"
566 pub fn dpos_dvalue_y(&self) -> f64 {
567 let flip = if self.inverted_axis[1] { 1.0 } else { -1.0 };
568 flip * (self.frame.height() as f64) / self.bounds.height()
569 }
570
571 /// delta position / delta value = how many ui points per step in "plot
572 /// space"

Callers 2

dpos_dvalueMethod · 0.80
dvalue_dposMethod · 0.80

Calls 1

heightMethod · 0.45

Tested by

no test coverage detected