[][src]Struct contour::ContourBuilder

pub struct ContourBuilder { /* fields omitted */ }

Contours generator to be used on a rectangular Slice of values to get a Vec of Features of MultiPolygon (use contour_rings internally).

Methods

impl ContourBuilder
[src]

pub fn new(dx: u32, dy: u32, smooth: bool) -> Self
[src]

Constructs a new contours generator for a grid with dx * dy dimension.

Arguments

  • dx - The number of columns in the grid.
  • dy - The number of rows in the grid.
  • smooth - Whether or not the generated rings will be smoothed using linear interpolation.

pub fn contours(&self, values: &[f64], thresholds: &[f64]) -> Vec<Feature>
[src]

Computes contours according the given input values and the given thresholds. Returns a Vec of Features of MultiPolygon. The threshold value of each Feature is stored in its value property.

Arguments

  • values - The slice of values to be used.
  • thresholds - The slice of thresholds values to be used.

Auto Trait Implementations

Blanket Implementations

impl<T> From for T
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]