MCPcopy Create free account
hub / github.com/Notgnoshi/generative / new

Method new

tools/streamline.rs:191–207  ·  view source on GitHub ↗
(
        min_x: f64,
        max_x: f64,
        min_y: f64,
        max_y: f64,
        stride: f64,
        function: VectorFieldFunction,
    )

Source from the content-addressed store, hash-verified

189
190impl 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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected