Skip to main content

slice_with_precision

Function slice_with_precision 

Source
pub fn slice_with_precision(
    polygons: &[Vec<(f64, f64)>],
    positions: &[f64],
    axis: Axis,
    precision: f64,
) -> (Vec<Vec<(f64, f64)>>, Vec<Vec<(f64, f64)>>)
Expand description

Slice with explicit precision (matches gdstk.slice).