[−][src]Enum noise::RangeFunction
Set of distance functions that can be used in the Worley noise function.
Variants
The standard linear distance. Expensive to compute because it requires square root calculations.
Same as Euclidean, but without the square root calculations. Distance results will be smaller, however, but hash patterns will be the same.
Measured by only moving in straight lines along the axes. Diagonal movement is not allowed, which leads to increased distances.
Measured by taking the largest distance along any axis as the total distance. Since this eliminates all but one dimension, it results in significantly shorter distances and produces regions where the distances are uniform.
Experimental function where all values are multiplied together and then added up like a quadratic equation.
Trait Implementations
impl Clone for RangeFunction
[src]
pub fn clone(&self) -> RangeFunction
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for RangeFunction
[src]
impl Debug for RangeFunction
[src]
Auto Trait Implementations
impl RefUnwindSafe for RangeFunction
[src]
impl Send for RangeFunction
[src]
impl Sync for RangeFunction
[src]
impl Unpin for RangeFunction
[src]
impl UnwindSafe for RangeFunction
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> SetParameter for T
pub fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
T: Parameter<Self>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,