Skip to main content

Img

Trait Img 

Source
pub trait Img<D> {
    // Required method
    fn into_point(self, t: f64) -> Point<D>;
}
Expand description

Suitable images of functions that can be used to generate samplings.

See e.g. Sampling::uniform and Sampling::fun.

Required Methods§

Source

fn into_point(self, t: f64) -> Point<D>

Transform a map f64self into the internal value Point. It will only be used with finite t.

Implementations on Foreign Types§

Source§

impl Img<NoData> for (f64, f64)

Source§

fn into_point(self, t: f64) -> Point<NoData>

Source§

impl Img<NoData> for f64

Source§

fn into_point(self, t: f64) -> Point<NoData>

Source§

impl Img<NoData> for [f64; 2]

Source§

fn into_point(self, t: f64) -> Point<NoData>

Source§

impl<D> Img<D> for (f64, Data<D>)

Values (y, Data(d)) are acceptable images (see Sampling::fun).

Source§

fn into_point(self, t: f64) -> Point<D>

Source§

impl<D> Img<D> for ([f64; 2], Data<D>)

Values ([x,y], Data(d)) are acceptable images (see Sampling::fun).

Source§

fn into_point(self, t: f64) -> Point<D>

Implementors§