Civilization
PerlinNoise.hpp
1 // Generated by dia2code
2 #ifndef SHARED__PERLINNOISE__H
3 #define SHARED__PERLINNOISE__H
4 
5 #include <vector>
6 
7 namespace shared {
8 
10  class PerlinNoise {
11  // Attributes
12  private:
13  std::vector<int> p;
14  // Operations
15  public:
16  PerlinNoise (unsigned seed);
17  double noise (double x, double y, double z);
18  private:
19  double fade (double t);
20  double lerp (double t, double a, double b);
21  double grad (int hash, double x, double y, double z);
22  // Setters and Getters
23  };
24 
25 };
26 
27 #endif
class PerlinNoise - Code from https://github.com/sol-prog/Perlin_Noise/
Definition: PerlinNoise.hpp:10