Trait nannou_timeline::track::automation::toggle::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
Provided methods
Implementations on Foreign Types
pub fn interpolate(
x: X,
start: &BezierPoint<X, Y>,
end: &BezierPoint<X, Y>
) -> Y where
X: PartialEq<X>,
Y: PartialEq<Y>,
pub fn interpolate(
x: X,
start: &BezierPoint<X, Y>,
end: &BezierPoint<X, Y>
) -> Y where
X: PartialEq<X>,
Y: PartialEq<Y>,
Interpolate between two points and return y for the given x.
type X = X
type Y = Y
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.