Struct nannou::noise::TranslatePoint [−][src]
pub struct TranslatePoint<Source> { pub source: Source, pub x_translation: f64, pub y_translation: f64, pub z_translation: f64, pub u_translation: f64, }
Expand description
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: 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.
Implementations
Sets the scaling factor to apply to the x coordinate of the input value.
Sets the scaling factor to apply to the y coordinate of the input value.
Sets the scaling factor to apply to the z coordinate of the input value.
Sets the scaling factor to apply to the u coordinate of the input value.
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<Source>
pub fn set_all_translations(
self,
x_translation: f64,
y_translation: f64,
z_translation: f64,
u_translation: f64
) -> TranslatePoint<Source>
Sets the individual translation amounts to apply to each coordinate of the input value.
Trait Implementations
Auto Trait Implementations
impl<Source> RefUnwindSafe for TranslatePoint<Source> where
Source: RefUnwindSafe,
impl<Source> Send for TranslatePoint<Source> where
Source: Send,
impl<Source> Sync for TranslatePoint<Source> where
Source: Sync,
impl<Source> Unpin for TranslatePoint<Source> where
Source: Unpin,
impl<Source> UnwindSafe for TranslatePoint<Source> where
Source: UnwindSafe,
Blanket Implementations
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
T: Component + Float,
D: AdaptFrom<S, Swp, Dwp, T>,
Swp: WhitePoint,
Dwp: WhitePoint,
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
T: Component + Float,
D: AdaptFrom<S, Swp, Dwp, T>,
Swp: WhitePoint,
Dwp: WhitePoint,
Mutably borrows from an owned value. Read more
Convert into T with values clamped to the color defined bounds Read more
Convert into T. The resulting color might be invalid in its color space Read more
Convert into T, returning ok if the color is inside of its defined range,
otherwise an OutOfBounds
error is returned which contains the unclamped color. Read more
pub fn vzip(self) -> V