Struct noise::RotatePoint [] [src]

pub struct RotatePoint<'a, Source: 'a> {
    pub source: &'a Source,
    pub x_angle: f64,
    pub y_angle: f64,
    pub z_angle: f64,
    pub u_angle: f64,
}

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

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

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 function 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<'a, Source> RotatePoint<'a, Source>
[src]

[src]

[src]

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

[src]

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

[src]

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

[src]

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

[src]

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

Trait Implementations

impl<'a, Source> NoiseFn<Point2<f64>> for RotatePoint<'a, Source> where
    Source: NoiseFn<Point2<f64>>, 
[src]

[src]

impl<'a, Source> NoiseFn<Point3<f64>> for RotatePoint<'a, Source> where
    Source: NoiseFn<Point3<f64>>, 
[src]

[src]

impl<'a, Source> NoiseFn<Point4<f64>> for RotatePoint<'a, Source> where
    Source: NoiseFn<Point4<f64>>, 
[src]

[src]

Auto Trait Implementations

impl<'a, Source> Send for RotatePoint<'a, Source> where
    Source: Sync

impl<'a, Source> Sync for RotatePoint<'a, Source> where
    Source: Sync