(
min_x: f64,
max_x: f64,
min_y: f64,
max_y: f64,
stride: f64,
function: VectorFieldFunction,
)
| 189 | |
| 190 | impl VectorField { |
| 191 | fn new( |
| 192 | min_x: f64, |
| 193 | max_x: f64, |
| 194 | min_y: f64, |
| 195 | max_y: f64, |
| 196 | stride: f64, |
| 197 | function: VectorFieldFunction, |
| 198 | ) -> Self { |
| 199 | Self { |
| 200 | function: Box::new(function), |
| 201 | min_x, |
| 202 | max_x, |
| 203 | min_y, |
| 204 | max_y, |
| 205 | stride, |
| 206 | } |
| 207 | } |
| 208 | |
| 209 | fn i2x(&self, i: usize) -> f64 { |
| 210 | (i as f64) * self.stride + self.min_x |
nothing calls this directly
no outgoing calls
no test coverage detected