Struct noise::RotatePoint [] [src]

pub struct RotatePoint<Source, T> {
    pub source: Source,
    pub x_angle: T,
    pub y_angle: T,
    pub z_angle: T,
    pub u_angle: T,
}

Noise Module that rotates the input value around the origin before returning the output value from the source module.

The get() method rotates the coordinates of the input value around the origin before returning the output value from the source module.

The coordinate system of the input value is assumed to be "right-handed" (x increases to the right, y increases upward, and z increases inward).

Fields

Source Module that outputs a value

x rotation angle applied to the input value, in degrees. The default angle is set to 0.0 degrees.

y rotation angle applied to the input value, in degrees. The default angle is set to 0.0 degrees.

z rotation angle applied to the input value, in degrees. The default angle is set to 0.0 degrees.

u rotation angle applied to the input value, in degrees. The default angle is set to 0.0 degrees.

Methods

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

Sets the rotation angle around the x axis to apply to the input value.

Sets the rotation angle around the y axis to apply to the input value.

Sets the rotation angle around the z axis to apply to the input value.

Sets the rotation angle around the u axis to apply to the input value.

Sets the rotation angles around all of the axes to apply to the input value.

Trait Implementations

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

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

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