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

Function plot_value_to_data

src/transform.rs:308–312  ·  view source on GitHub ↗
(value: f64, axis_scale: AxisScale)

Source from the content-addressed store, hash-verified

306}
307
308pub(crate) fn plot_value_to_data(value: f64, axis_scale: AxisScale) -> Option<f64> {
309 Transform::from(axis_scale)
310 .inverted()?
311 .transform_value(value)
312}
313
314pub(crate) fn data_point_to_plot_with_transform(
315 point: [f64; 2],

Callers 2

plot_point_to_dataFunction · 0.85
plot_to_dataMethod · 0.85

Calls 2

transform_valueMethod · 0.80
invertedMethod · 0.80

Tested by

no test coverage detected