[−][src]Struct nannou::noise::TranslatePoint
Noise function that moves the coordinates of the input value before returning the output value from the source function.
The get() method moves the coordinates of the input value by a translation amount before returning the output value from the source function.
Fields
source: &'a Source
Source function that outputs a value
x_translation: f64
Translation amount applied to the x coordinate of the input value. The default translation amount is set to 0.0.
y_translation: f64
Translation amount applied to the y coordinate of the input value. The default translation amount is set to 0.0.
z_translation: f64
Translation amount applied to the z coordinate of the input value. The default translation amount is set to 0.0.
u_translation: f64
Translation amount applied to the u coordinate of the input value. The default translation amount is set to 0.0.
Methods
impl<'a, Source> TranslatePoint<'a, Source>
[src]
pub fn new(source: &'a Source) -> TranslatePoint<'a, Source>
[src]
pub fn set_x_translation(self, x_translation: f64) -> TranslatePoint<'a, Source>
[src]
Sets the scaling factor to apply to the x coordinate of the input value.
pub fn set_y_translation(self, y_translation: f64) -> TranslatePoint<'a, Source>
[src]
Sets the scaling factor to apply to the y coordinate of the input value.
pub fn set_z_translation(self, z_translation: f64) -> TranslatePoint<'a, Source>
[src]
Sets the scaling factor to apply to the z coordinate of the input value.
pub fn set_u_translation(self, u_translation: f64) -> TranslatePoint<'a, Source>
[src]
Sets the scaling factor to apply to the u coordinate of the input value.
pub fn set_translation(self, scale: f64) -> TranslatePoint<'a, Source>
[src]
Sets the translation amount to apply to all coordinates of the input value.
pub fn set_all_translations(
self,
x_translation: f64,
y_translation: f64,
z_translation: f64,
u_translation: f64
) -> TranslatePoint<'a, Source>
[src]
self,
x_translation: f64,
y_translation: f64,
z_translation: f64,
u_translation: f64
) -> TranslatePoint<'a, Source>
Sets the individual translation amounts to apply to each coordinate of the input value.
Trait Implementations
impl<'a, Source> NoiseFn<[f64; 2]> for TranslatePoint<'a, Source> where
Source: NoiseFn<[f64; 2]>,
[src]
Source: NoiseFn<[f64; 2]>,
impl<'a, Source> NoiseFn<[f64; 3]> for TranslatePoint<'a, Source> where
Source: NoiseFn<[f64; 3]>,
[src]
Source: NoiseFn<[f64; 3]>,
impl<'a, Source> NoiseFn<[f64; 4]> for TranslatePoint<'a, Source> where
Source: NoiseFn<[f64; 4]>,
[src]
Source: NoiseFn<[f64; 4]>,
Auto Trait Implementations
impl<'a, Source> Send for TranslatePoint<'a, Source> where
Source: Sync,
Source: Sync,
impl<'a, Source> Sync for TranslatePoint<'a, Source> where
Source: Sync,
Source: Sync,
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Content for T
[src]
fn ref_from_ptr(ptr: *mut c_void, size: usize) -> Option<*mut T>
[src]
fn is_size_suitable(size: usize) -> bool
[src]
fn indiv_size() -> usize
[src]
impl<T> SafeBorrow<T> for T
[src]
impl<T> Erased for T
impl<S> FromSample<S> for S
[src]
fn from_sample_(s: S) -> S
[src]
impl<T, U> ToSample<U> for T where
U: FromSample<T>,
[src]
U: FromSample<T>,
fn to_sample_(self) -> U
[src]
impl<S, T> Duplex<S> for T where
T: FromSample<S> + ToSample<S>,
[src]
T: FromSample<S> + ToSample<S>,
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
T: Parameter<Self>,
Sets value
as a parameter of self
.
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
T: Parameter<Self>,
Sets value
as a parameter of self
.