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

Method transform_point

src/transform.rs:257–264  ·  view source on GitHub ↗

Convert a raw point into plot-space coordinates.

(
        &self,
        point: [f64; 2],
        x_axis_scale: AxisScale,
        y_axis_scale: AxisScale,
    )

Source from the content-addressed store, hash-verified

255
256 /// Convert a raw point into plot-space coordinates.
257 pub fn transform_point(
258 &self,
259 point: [f64; 2],
260 x_axis_scale: AxisScale,
261 y_axis_scale: AxisScale,
262 ) -> Option<[f64; 2]> {
263 data_point_to_plot_with_transform(point, x_axis_scale, y_axis_scale, self, None)
264 }
265
266 pub(crate) fn uses_axes_coordinates(&self) -> bool {
267 self.x

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected