Struct enterpolation::TransformInput
source · pub struct TransformInput<G, A, M> { /* private fields */ }
Expand description
Struct which transforms the input before sending it to the underlying generator.
Both addition and multiplication is done. In regards to math operation priorities, multiplication is done first.
Implementations§
source§impl<G, A, M> TransformInput<G, A, M>
impl<G, A, M> TransformInput<G, A, M>
source§impl<G, R> TransformInput<G, R, R>where
G: Curve<R>,
R: Real,
impl<G, R> TransformInput<G, R, R>where G: Curve<R>, R: Real,
sourcepub fn normalized_to_domain(generator: G, start: R, end: R) -> Self
pub fn normalized_to_domain(generator: G, start: R, end: R) -> Self
Transfrom an input such that the wrapped generator changes its domain from [0.0,1.0] to the domain wished for.
Trait Implementations§
source§impl<G: Clone, A: Clone, M: Clone> Clone for TransformInput<G, A, M>
impl<G: Clone, A: Clone, M: Clone> Clone for TransformInput<G, A, M>
source§fn clone(&self) -> TransformInput<G, A, M>
fn clone(&self) -> TransformInput<G, A, M>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<G, R> Curve<R> for TransformInput<G, R, R>where
G: Curve<R>,
R: Real,
impl<G, R> Curve<R> for TransformInput<G, R, R>where G: Curve<R>, R: Real,
source§impl<G, A, M, I> Generator<I> for TransformInput<G, A, M>where
I: Mul<M>,
I::Output: Add<A>,
A: Copy,
M: Copy,
G: Generator<<<I as Mul<M>>::Output as Add<A>>::Output>,
impl<G, A, M, I> Generator<I> for TransformInput<G, A, M>where I: Mul<M>, I::Output: Add<A>, A: Copy, M: Copy, G: Generator<<<I as Mul<M>>::Output as Add<A>>::Output>,
§type Output = <G as Generator<<<I as Mul<M>>::Output as Add<A>>::Output>>::Output
type Output = <G as Generator<<<I as Mul<M>>::Output as Add<A>>::Output>>::Output
The element outputted
source§fn extract<I, J>(self, iterator: I) -> Extract<Self, J> ⓘwhere
Self: Sized,
I: IntoIterator<IntoIter = J>,
J: Iterator<Item = Input>,
fn extract<I, J>(self, iterator: I) -> Extract<Self, J> ⓘwhere Self: Sized, I: IntoIterator<IntoIter = J>, J: Iterator<Item = Input>,
Helper function if one wants to extract values from the interpolation. Read more
source§fn stack<G>(self, gen: G) -> Stack<Self, G>where
Self: Sized,
fn stack<G>(self, gen: G) -> Stack<Self, G>where Self: Sized,
Stack two generators together Read more
source§impl<G: PartialEq, A: PartialEq, M: PartialEq> PartialEq<TransformInput<G, A, M>> for TransformInput<G, A, M>
impl<G: PartialEq, A: PartialEq, M: PartialEq> PartialEq<TransformInput<G, A, M>> for TransformInput<G, A, M>
source§fn eq(&self, other: &TransformInput<G, A, M>) -> bool
fn eq(&self, other: &TransformInput<G, A, M>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<G: Copy, A: Copy, M: Copy> Copy for TransformInput<G, A, M>
impl<G, A, M> StructuralPartialEq for TransformInput<G, A, M>
Auto Trait Implementations§
impl<G, A, M> RefUnwindSafe for TransformInput<G, A, M>where A: RefUnwindSafe, G: RefUnwindSafe, M: RefUnwindSafe,
impl<G, A, M> Send for TransformInput<G, A, M>where A: Send, G: Send, M: Send,
impl<G, A, M> Sync for TransformInput<G, A, M>where A: Sync, G: Sync, M: Sync,
impl<G, A, M> Unpin for TransformInput<G, A, M>where A: Unpin, G: Unpin, M: Unpin,
impl<G, A, M> UnwindSafe for TransformInput<G, A, M>where A: UnwindSafe, G: UnwindSafe, M: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more