Skip to main content

interpolate_velocity

Function interpolate_velocity 

Source
pub fn interpolate_velocity(grid: &MacGrid, x: f64, y: f64) -> [f64; 2]
Expand description

Bilinearly interpolate velocity at world coordinates (x, y).

Coordinates are in metres; the grid’s dx sets the cell size.