Trait noise::GenFn4 [] [src]

pub trait GenFn4<T>: Fn(&PermutationTable, &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, PermutationTable, Point4};

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

Implementors