Trait nannou_timeline::track::automation::PointTrait[][src]

pub trait PointTrait: Clone {
    type X: PartialEq<Self::X> + Clone;
    type Y: PartialEq<Self::Y> + Spatial;
    fn x_to_scalar(x: Self::X) -> <Self::Y as Spatial>::Scalar;
fn x(&self) -> Self::X;
fn y(&self) -> Self::Y; fn interpolate(x: Self::X, start: &Self, end: &Self) -> Self::Y
    where
        <Self::Y as Spatial>::Scalar: Scalar
, { ... } }
Expand description

Implement this for types to be used as points on an Envelope.

Associated Types

Required methods

Convert X to Y’s Scalar.

X (often associated with time).

Y (often associated with some value).

Provided methods

Interpolate between two points and return y for the given x.

Implementations on Foreign Types

Interpolate between two points and return y for the given x.

Implementors

Implement envelope::Point for Points with floating point parameters.

Implement envelope::Point for Points with floating point parameters.

Implement envelope::Point for Points with floating point parameters.

Implement envelope::Point for Points with floating point parameters.

Implement envelope::Point for Points with floating point parameters.

Implement envelope::Point for Points with floating point parameters.

Implement envelope::Point for Points with floating point parameters.

Implement envelope::Point for Points with floating point parameters.

Implement envelope::Point for Points with floating point parameters.

Implement envelope::Point for Points with floating point parameters.

A bang doesn’t yet have a Point implementation, so create one.

A bool doesn’t yet have a Point implementation, so create one.