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

Method position_from_point

egui_plot/src/axis.rs:513–515  ·  view source on GitHub ↗

Screen/ui position from point on plot.

(&self, value: &PlotPoint)

Source from the content-addressed store, hash-verified

511
512 /// Screen/ui position from point on plot.
513 pub fn position_from_point(&self, value: &PlotPoint) -> Pos2 {
514 pos2(self.position_from_point_x(value.x), self.position_from_point_y(value.y))
515 }
516
517 /// Plot point from screen/ui position.
518 pub fn value_from_position(&self, pos: Pos2) -> PlotPoint {

Callers 15

draw_cursorMethod · 0.80
paint_grid_directionMethod · 0.80
screen_from_plotMethod · 0.80
add_tick_labelsMethod · 0.80
rect_from_valuesMethod · 0.80
shapesMethod · 0.80
shapesMethod · 0.80
find_closestMethod · 0.80
on_hoverMethod · 0.80
add_rulers_and_textFunction · 0.80
shapesMethod · 0.80
add_shapesMethod · 0.80

Calls 2

position_from_point_xMethod · 0.80
position_from_point_yMethod · 0.80

Tested by

no test coverage detected