Panda3D
stackedPerlinNoise2.I
Go to the documentation of this file.
1 /**
2  * PANDA 3D SOFTWARE
3  * Copyright (c) Carnegie Mellon University. All rights reserved.
4  *
5  * All use of this software is subject to the terms of the revised BSD
6  * license. You should have received a copy of this license along
7  * with this source code in a file named "LICENSE."
8  *
9  * @file stackedPerlinNoise2.I
10  * @author drose
11  * @date 2005-10-05
12  */
13 
14 /**
15  * Creates a StackedPerlinNoise2 object with no levels. You should call
16  * add_level() to add each level by hand.
17  */
20 }
21 
22 /**
23  * Returns the noise function of the three inputs.
24  */
25 INLINE double StackedPerlinNoise2::
26 noise(double x, double y) {
27  return noise(LVecBase2d(x, y));
28 }
29 
30 /**
31  * Returns the noise function of the three inputs.
32  */
33 INLINE float StackedPerlinNoise2::
34 noise(const LVecBase2f &value) {
35  return (float)noise(value[0], value[1]);
36 }
37 
38 /**
39  * Returns the noise function of the three inputs.
40  */
41 INLINE double StackedPerlinNoise2::
42 operator ()(double x, double y) {
43  return noise(x, y);
44 }
45 
46 /**
47  * Returns the noise function of the three inputs.
48  */
49 INLINE float StackedPerlinNoise2::
50 operator ()(const LVecBase2f &value) {
51  return noise(value);
52 }
53 
54 /**
55  * Returns the noise function of the three inputs.
56  */
57 INLINE double StackedPerlinNoise2::
58 operator ()(const LVecBase2d &value) {
59  return noise(value);
60 }
double noise(double x, double y)
Returns the noise function of the three inputs.
double operator()(double x, double y)
Returns the noise function of the three inputs.
StackedPerlinNoise2()
Creates a StackedPerlinNoise2 object with no levels.