MCPcopy Create free account
hub / github.com/donkeyteethUX/iced_plot / world_to_screen_position_y

Function world_to_screen_position_y

src/plot_widget.rs:1969–1982  ·  view source on GitHub ↗

Convert world position to screen position

(
    y: f64,
    camera: &Camera,
    bounds: &Rectangle,
)

Source from the content-addressed store, hash-verified

1967 self.instance_id,
1968 *cursor_position,
1969 *hover_radius_px,
1970 force_cpu_picking,
1971 points.as_ref(),
1972 series.as_ref(),
1973 camera,
1974 bounds,
1975 |pid| self.valid_point_id(pid),
1976 )
1977 }
1978}
1979
1980impl Pipeline for PlotRendererState {
1981 fn new(
1982 _device: &iced::wgpu::Device,
1983 _queue: &iced::wgpu::Queue,
1984 format: iced::wgpu::TextureFormat,
1985 ) -> Self

Callers 3

update_ticksMethod · 0.85
draw_reference_linesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected