Function noise::core::simplex::simplex_2d

source ·
pub fn simplex_2d<NH>(point: Vector2<f64>, hasher: &NH) -> (f64, [f64; 2])
where NH: NoiseHasher + ?Sized,
Expand description

The simplex noise code was adapted from code by Stefan Gustavson, http://staffwww.itn.liu.se/~stegu/aqsis/aqsis-newnoise/sdnoise1234.c

This is Stefan Gustavson’s original copyright notice:

/* sdnoise1234, Simplex noise with true analytic

  • derivative in 1D to 4D.
  • Copyright © 2003-2011, Stefan Gustavson
  • Contact: stefan.gustavson@gmail.com
  • This library is public domain software, released by the author
  • into the public domain in February 2011. You may do anything
  • you like with it. You may even remove all attributions,
  • but of course I’d appreciate it if you kept my name somewhere.
  • This library is distributed in the hope that it will be useful,
  • but WITHOUT ANY WARRANTY; without even the implied warranty of
  • MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  • General Public License for more details. */