Trait noise::GenFn4 [] [src]

pub trait GenFn4<T>: Fn(&Seed, &Point4<T>) -> T { }

A trait alias for a 4-dimensional noise function.

This is useful for succinctly parameterising over valid noise functions.

Example

use noise::{GenFn4, Seed, Point4};

fn apply_noise4<F: GenFn4<f32>>(s: &Seed, p: &Point4<f32>, f: F) -> f32 { f(s, p) }

Implementors