-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnoise.hpp
More file actions
30 lines (24 loc) · 778 Bytes
/
Copy pathnoise.hpp
File metadata and controls
30 lines (24 loc) · 778 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#ifndef DPSCPP_NOISE_HPP_
#define DPSCPP_NOISE_HPP_
#include "signal.hpp"
#include "random.hpp"
using Random = effolkronium::random_static;
class noise : public signal // scale*rand()+verticalDisplacement
{
public:
noise(double scale, double verticalDisplacement);
noise(const noise &toCopy) noexcept;
noise& operator=(const noise &toCopy) noexcept;
noise(noise &&toMove) noexcept;
noise& operator=(noise&&toMove) noexcept;
~noise();
std::complex<double> get(long long int n);
const double& getScale() const;
void setScale(const double &scale);
const double& getVerticalDisplacement() const;
void setVerticalDisplacement(const double &verticalDisplacement);
private:
double scale;
double verticalDisplacement;
};
#endif /* DPSCPP_NOISE_HPP_ */