Trait noise::GenFn3 [] [src]

pub trait GenFn3<T>: Fn(&Seed, &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, Seed, Point3};

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

Implementors