Struct noise_functions::open_simplex::Improve3Xy

source ·
pub struct Improve3Xy<Noise>(pub Noise);
Expand description

Improves 3D orientation for the XY plane.

Tuple Fields§

§0: Noise

Trait Implementations§

source§

impl<Noise> Sample<3> for Improve3Xy<Noise>
where Noise: Sample<3>,

source§

fn sample(&self, pos: [f32; 3]) -> f32

source§

impl<Noise> Sample<3, Simd<f32, 4>> for Improve3Xy<Noise>
where Noise: Sample<3, f32x4>,

Available on crate feature nightly-simd only.
source§

fn sample(&self, pos: f32x4) -> f32

Auto Trait Implementations§

§

impl<Noise> Freeze for Improve3Xy<Noise>
where Noise: Freeze,

§

impl<Noise> RefUnwindSafe for Improve3Xy<Noise>
where Noise: RefUnwindSafe,

§

impl<Noise> Send for Improve3Xy<Noise>
where Noise: Send,

§

impl<Noise> Sync for Improve3Xy<Noise>
where Noise: Sync,

§

impl<Noise> Unpin for Improve3Xy<Noise>
where Noise: Unpin,

§

impl<Noise> UnwindSafe for Improve3Xy<Noise>
where Noise: UnwindSafe,

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<Noise> Sample3 for Noise
where Noise: Sample<3>,

source§

fn sample3(&self, pos: impl Into<[f32; 3]>) -> f32

source§

impl<Noise> Sample3a for Noise
where Noise: Sample<3, Simd<f32, 4>>,

source§

fn sample3a(&self, pos: impl Into<Simd<f32, 4>>) -> f32

Available on crate feature nightly-simd only.
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.