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

Method screen_from_plot

egui_plot/src/plot.rs:2005–2007  ·  view source on GitHub ↗

Transform the plot coordinates to screen coordinates.

(&self, position: PlotPoint)

Source from the content-addressed store, hash-verified

2003
2004 /// Transform the plot coordinates to screen coordinates.
2005 pub fn screen_from_plot(&self, position: PlotPoint) -> Pos2 {
2006 self.last_plot_transform.position_from_point(&position)
2007 }
2008
2009 /// Transform the screen coordinates to plot coordinates.
2010 pub fn plot_from_screen(&self, position: Pos2) -> PlotPoint {

Callers 1

show_plotMethod · 0.80

Calls 1

position_from_pointMethod · 0.80

Tested by

no test coverage detected