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

Method plot_from_screen

egui_plot/src/plot.rs:2010–2012  ·  view source on GitHub ↗

Transform the screen coordinates to plot coordinates.

(&self, position: Pos2)

Source from the content-addressed store, hash-verified

2008
2009 /// Transform the screen coordinates to plot coordinates.
2010 pub fn plot_from_screen(&self, position: Pos2) -> PlotPoint {
2011 self.last_plot_transform.value_from_position(position)
2012 }
2013
2014 /// Add an arbitrary item.
2015 pub fn add(&mut self, item: impl PlotItem + 'a) {

Callers 1

pointer_coordinateMethod · 0.80

Calls 1

value_from_positionMethod · 0.80

Tested by

no test coverage detected