-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnoise.h
More file actions
23 lines (17 loc) · 729 Bytes
/
noise.h
File metadata and controls
23 lines (17 loc) · 729 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef NOISE_H
#define NOISE_H
#include "FastNoise.h"
class Noise {
public:
FastNoise fastNoise;
explicit Noise(int s = 0, double frequency = 0.01, int octaves = 1);
Noise(const Noise &noise);
~Noise();
Noise &operator=(const Noise &noise);
double in2D(float x, float y);
double in3D(float x, float y, float z);
};
// void noise2(int seed, double frequency, int octaves, int dims[3], float shifts[3], float offset, float *potential);
float getHeight(int seed, float ax, float ay, float az, float baseHeight);
void noise3(int seed, int x, int y, int z, float baseHeight, float wormRate, float wormRadiusBase, float wormRadiusRate, float objectsRate, float potentialDefault, void *subparcelByteOffset);
#endif