Trait noise::GenFn3 [] [src]

pub trait GenFn3<T>: Fn(&PermutationTable, &Point3<T>) -> T { }

A trait alias for a 3-dimensional noise function.

This is useful for succinctly parameterising over valid noise functions.

Example

use noise::{GenFn3, PermutationTable, Point3};

fn apply_noise3<F: GenFn3<f32>>(t: &PermutationTable, p: &Point3<f32>, f: F) -> f32 { f(t, p) }

Implementors