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

Method affine

src/transform.rs:141–146  ·  view source on GitHub ↗

Convert a data value with `value * scale + translate` before axis scaling.

(scale: f64, translate: f64)

Source from the content-addressed store, hash-verified

139
140 /// Convert a data value with `value * scale + translate` before axis scaling.
141 pub const fn affine(scale: f64, translate: f64) -> Self {
142 Self {
143 coordinate_system: CoordinateSystem::Data,
144 operation: TransformOperation::Affine { scale, translate },
145 }
146 }
147
148 /// Convert a data value with `log_base(value)` before axis scaling.
149 pub const fn log(base: f64) -> Self {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected