macro_rules! noise {
($x:expr$(,)?) => { ... };
($x:expr, $y:expr$(,)?) => { ... };
($x:expr, $y:expr, $z:expr$(,)?) => { ... };
}
Expand description
Returns the Perlin noise value at specified coordinates.
ยงExamples
let n = noise!(5.0);
assert!(n >= 0.0 && n < 1.0);
let n = noise!(2.0, 1.5);
assert!(n >= 0.0 && n < 1.0);
let n = noise!(2.0, 1.5, 3.0);
assert!(n >= 0.0 && n < 1.0);