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>
impl<G, R> TransformInput<G, R, R>
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>
impl<G, R> Curve<R> for TransformInput<G, R, R>
Source§impl<G, A, M, I> Generator<I> for TransformInput<G, A, M>
impl<G, A, M, I> Generator<I> for TransformInput<G, A, M>
Source§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> ⓘ
fn extract<I, J>(self, iterator: I) -> Extract<Self, J> ⓘ
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
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> Freeze for TransformInput<G, A, M>
impl<G, A, M> RefUnwindSafe for TransformInput<G, A, M>
impl<G, A, M> Send for TransformInput<G, A, M>
impl<G, A, M> Sync for TransformInput<G, A, M>
impl<G, A, M> Unpin for TransformInput<G, A, M>
impl<G, A, M> UnwindSafe for TransformInput<G, A, M>
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