Panda3D
stackedPerlinNoise3.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 stackedPerlinNoise3.I
10  * @author drose
11  * @date 2005-10-05
12  */
13 
14 /**
15  * Creates a StackedPerlinNoise3 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 StackedPerlinNoise3::
26 noise(double x, double y, double z) {
27  return noise(LVecBase3d(x, y, z));
28 }
29 
30 /**
31  * Returns the noise function of the three inputs.
32  */
33 INLINE float StackedPerlinNoise3::
34 noise(const LVecBase3f &value) {
35  return (float)noise(value[0], value[1], value[2]);
36 }
37 
38 /**
39  * Returns the noise function of the three inputs.
40  */
41 INLINE double StackedPerlinNoise3::
42 operator ()(double x, double y, double z) {
43  return noise(x, y, z);
44 }
45 
46 /**
47  * Returns the noise function of the three inputs.
48  */
49 INLINE float StackedPerlinNoise3::
50 operator ()(const LVecBase3f &value) {
51  return noise(value);
52 }
53 
54 /**
55  * Returns the noise function of the three inputs.
56  */
57 INLINE double StackedPerlinNoise3::
58 operator ()(const LVecBase3d &value) {
59  return noise(value);
60 }
double operator()(double x, double y, double z)
Returns the noise function of the three inputs.
StackedPerlinNoise3()
Creates a StackedPerlinNoise3 object with no levels.
double noise(double x, double y, double z)
Returns the noise function of the three inputs.