Newton Dynamics  4.00
ndPerlinNoise.h
1 /* Copyright (c) <2003-2022> <Newton Game Dynamics>
2 *
3 * This software is provided 'as-is', without any express or implied
4 * warranty. In no event will the authors be held liable for any damages
5 * arising from the use of this software.
6 *
7 * Permission is granted to anyone to use this software for any purpose,
8 * including commercial applications, and to alter it and redistribute it
9 * freely
10 */
11 
12 #ifndef __ND_PERLIN_NOISE_H__
13 #define __ND_PERLIN_NOISE_H__
14 
15 #include "ndCoreStdafx.h"
16 
17 D_CORE_API ndFloat32 dPerlinNoise(ndFloat32 x);
18 D_CORE_API ndFloat32 dPerlinNoise(ndFloat32 x, ndFloat32 y);
19 D_CORE_API ndFloat32 dPerlinNoise(ndFloat32 x, ndFloat32 y, ndFloat32 z);
20 
21 D_CORE_API ndFloat32 BrownianMotion(ndInt32 octaves, ndFloat32 persistence, ndFloat32 x);
22 D_CORE_API ndFloat32 BrownianMotion(ndInt32 octaves, ndFloat32 persistence, ndFloat32 x, ndFloat32 y);
23 D_CORE_API ndFloat32 BrownianMotion(ndInt32 octaves, ndFloat32 persistence, ndFloat32 x, ndFloat32 y, ndFloat32 z);
24 #endif
25