16 lines
483 B
C++
16 lines
483 B
C++
|
#include <math.h>
|
||
|
|
||
|
#ifndef NOISE_HPP_
|
||
|
#define NOISE_HPP_
|
||
|
|
||
|
float mapfloat(float x, float in_min, float in_max, float out_min, float out_max);
|
||
|
|
||
|
float Noise2(float x, float y);
|
||
|
float SmoothNoise2(float x, float y);
|
||
|
float InterpolatedNoise2(float x, float y);
|
||
|
float Interpolate(float a, float b, float x);
|
||
|
float LinearInterpolate(float a, float b, float x);
|
||
|
float CosineInterpolate(float a, float b, float x);
|
||
|
float PerlinNoise2(float x, float y, float persistance, int octaves);
|
||
|
|
||
|
#endif
|