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

Method point_at

egui_plot/src/rect_elem.rs:36–41  ·  view source on GitHub ↗

Get X/Y-value for (argument, value) pair, taking into account orientation

(&self, argument: f64, value: f64)

Source from the content-addressed store, hash-verified

34 /// Get X/Y-value for (argument, value) pair, taking into account
35 /// orientation
36 fn point_at(&self, argument: f64, value: f64) -> PlotPoint {
37 match self.orientation() {
38 Orientation::Horizontal => PlotPoint::new(value, argument),
39 Orientation::Vertical => PlotPoint::new(argument, value),
40 }
41 }
42
43 /// Right top of the rectangle (position of text)
44 fn corner_value(&self) -> PlotPoint {

Callers 8

bounds_minMethod · 0.80
bounds_maxMethod · 0.80
values_with_rulerMethod · 0.80
add_shapesMethod · 0.80
bounds_minMethod · 0.80
bounds_maxMethod · 0.80
values_with_rulerMethod · 0.80
corner_valueMethod · 0.80

Implementers 2

bar_chart.rsegui_plot/src/items/bar_chart.rs
box_plot.rsegui_plot/src/items/box_plot.rs

Calls 1

orientationMethod · 0.45

Tested by

no test coverage detected