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

Function affine_transform_normalizes_axis_position

src/transform.rs:357–363  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

355
356 #[test]
357 fn affine_transform_normalizes_axis_position() {
358 let transform = Transform::affine(2.0, 10.0);
359 assert_eq!(
360 transform.transform_position(5.0, AxisScale::Linear, [0.0, 10.0]),
361 Some(0.5)
362 );
363 }
364
365 #[test]
366 fn axis_scale_is_applied_after_data_transform() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected