(
point: [f64; 2],
x_scale: AxisScale,
y_scale: AxisScale,
)
| 335 | } |
| 336 | |
| 337 | pub(crate) fn plot_point_to_data( |
| 338 | point: [f64; 2], |
| 339 | x_scale: AxisScale, |
| 340 | y_scale: AxisScale, |
| 341 | ) -> Option<[f64; 2]> { |
| 342 | Some([ |
| 343 | plot_value_to_data(point[0], x_scale)?, |
| 344 | plot_value_to_data(point[1], y_scale)?, |
| 345 | ]) |
| 346 | } |
| 347 | |
| 348 | fn valid_log_base(base: f64) -> bool { |
| 349 | base.is_finite() && base > 0.0 && (base - 1.0).abs() > f64::EPSILON |
no test coverage detected