Free Electron
ext
geometry
Noise.h
Go to the documentation of this file.
1
/* Copyright (C) 2003-2021 Free Electron Organization
2
Any use of this software requires a license. If a valid license
3
was not distributed with this file, visit freeelectron.org. */
4
5
/** @file */
6
7
#ifndef __geometry_Noise_h__
8
#define __geometry_Noise_h__
9
10
11
namespace
fe
12
{
13
namespace
ext
14
{
15
/**************************************************************************/
/**
16
@brief Perlin Noise
17
18
@ingroup geometry
19
20
https://github.com/Auburns/FastNoise
21
22
*/
/***************************************************************************/
23
class
FE_DL_EXPORT
Noise
24
{
25
public
:
26
Noise
(
void
);
27
virtual
~
Noise
(
void
);
28
29
void
setSeed(I32 a_seed);
30
31
Real perlin2d(
const
Vector2
& a_rPosition);
32
Real perlin3d(
const
Vector3
& a_rPosition);
33
34
Real whiteNoise2d(
const
Vector2
& a_rPosition);
35
Real whiteNoise3d(
const
Vector3
& a_rPosition);
36
37
private
:
38
39
void
* m_pFastNoise;
40
};
41
42
}
/* namespace ext */
43
}
/* namespace fe */
44
45
#endif
/* __geometry_Noise_h__ */
fe
kernel
Definition:
namespace.dox:3
fe::Vector< 2, Real >
fe::ext::Noise
Perlin Noise.
Definition:
Noise.h:23
Generated by
1.8.13