Struct noise::TranslatePoint [] [src]

pub struct TranslatePoint<Source, T> {
    pub source: Source,
    pub x_translation: T,
    pub y_translation: T,
    pub z_translation: T,
    pub u_translation: T,
}

Noise Module that moves the coordinates of the input value before returning the output value from the source module.

The get() method moves the coordinates of the input value by a translation amount before returning the output value from the source module.

Fields

Source Module that outputs a value

Translation amount applied to the x coordinate of the input value. The default translation amount is set to 0.0.

Translation amount applied to the y coordinate of the input value. The default translation amount is set to 0.0.

Translation amount applied to the z coordinate of the input value. The default translation amount is set to 0.0.

Translation amount applied to the u coordinate of the input value. The default translation amount is set to 0.0.

Methods

impl<Source, T> TranslatePoint<Source, T> where
    T: Float
[src]

Sets the scaling factor to apply to the x coordinate of the input value.

Sets the scaling factor to apply to the x coordinate of the input value.

Sets the scaling factor to apply to the x coordinate of the input value.

Sets the scaling factor to apply to the x coordinate of the input value.

Sets the translation amount to apply to all coordinates of the input value.

Sets the individual translation amounts to apply to each coordinate of the input value.

Trait Implementations

impl<Source, T> NoiseModule<Point2<T>> for TranslatePoint<Source, T> where
    Source: NoiseModule<Point2<T>, Output = T>,
    T: Float
[src]

impl<Source, T> NoiseModule<Point3<T>> for TranslatePoint<Source, T> where
    Source: NoiseModule<Point3<T>, Output = T>,
    T: Float
[src]

impl<Source, T> NoiseModule<Point4<T>> for TranslatePoint<Source, T> where
    Source: NoiseModule<Point4<T>, Output = T>,
    T: Float
[src]