Enum nannou::noise::RangeFunction [−][src]
pub enum RangeFunction {
Euclidean,
EuclideanSquared,
Manhattan,
Chebyshev,
Quadratic,
}
Expand description
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
Auto Trait Implementations
impl RefUnwindSafe for RangeFunction
impl Send for RangeFunction
impl Sync for RangeFunction
impl Unpin for RangeFunction
impl UnwindSafe for RangeFunction
Blanket Implementations
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
T: Component + Float,
Swp: WhitePoint,
Dwp: WhitePoint,
D: AdaptFrom<S, Swp, Dwp, T>,
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
T: Component + Float,
Swp: WhitePoint,
Dwp: WhitePoint,
D: AdaptFrom<S, Swp, Dwp, T>,
Mutably borrows from an owned value. Read more
Convert into T with values clamped to the color defined bounds Read more
Convert into T. The resulting color might be invalid in its color space Read more
Convert into T, returning ok if the color is inside of its defined range,
otherwise an OutOfBounds
error is returned which contains the unclamped color. Read more