SeExpr
Noise.h
Go to the documentation of this file.
1 /*
2  Copyright Disney Enterprises, Inc. All rights reserved.
3 
4  Licensed under the Apache License, Version 2.0 (the "License");
5  you may not use this file except in compliance with the License
6  and the following modification to it: Section 6 Trademarks.
7  deleted and replaced with:
8 
9  6. Trademarks. This License does not grant permission to use the
10  trade names, trademarks, service marks, or product names of the
11  Licensor and its affiliates, except as required for reproducing
12  the content of the NOTICE file.
13 
14  You may obtain a copy of the License at
15  http://www.apache.org/licenses/LICENSE-2.0
16 */
17 #ifndef _noise_h_
18 #define _noise_h_
19 namespace SeExpr2 {
20 
22 template <int d_in, int d_out, class T>
23 void Noise(const T* in, T* out);
24 
27 template <int d_in, int d_out, class T>
28 void PNoise(const T* in, const int* period, T* out);
29 
31 template <int d_in, int d_out, bool turbulence, class T>
32 void FBM(const T* in, T* out, int octaves, T lacunarity, T gain);
33 
35 template <int d_in, int d_out, class T>
36 void CellNoise(const T* in, T* out);
37 }
38 #endif
void CellNoise(const T *in, T *out)
Computes cellular noise (non-interpolated piecewise constant cell random values)
Definition: Noise.cpp:143
void PNoise(const T *in, const int *period, T *out)
Periodic Noise with d_in dimensional domain, d_out dimensional abcissa.
Definition: Noise.cpp:170
void FBM(const T *in, T *out, int octaves, T lacunarity, T gain)
Fractional Brownian Motion. If turbulence is true then turbulence computed.
Definition: Noise.cpp:185
void Noise(const T *in, T *out)
Noise with d_in dimensional domain, d_out dimensional abcissa.
Definition: Noise.cpp:156