Panda3D
stackedPerlinNoise3.I
1 // Filename: stackedPerlinNoise3.I
2 // Created by: drose (05Oct05)
3 //
4 ////////////////////////////////////////////////////////////////////
5 //
6 // PANDA 3D SOFTWARE
7 // Copyright (c) Carnegie Mellon University. All rights reserved.
8 //
9 // All use of this software is subject to the terms of the revised BSD
10 // license. You should have received a copy of this license along
11 // with this source code in a file named "LICENSE."
12 //
13 ////////////////////////////////////////////////////////////////////
14 
15 
16 ////////////////////////////////////////////////////////////////////
17 // Function: StackedPerlinNoise3::Default Constructor
18 // Access: Published
19 // Description: Creates a StackedPerlinNoise3 object with no levels.
20 // You should call add_level() to add each level by
21 // hand.
22 ////////////////////////////////////////////////////////////////////
25 }
26 
27 ////////////////////////////////////////////////////////////////////
28 // Function: StackedPerlinNoise3::noise
29 // Access: Published
30 // Description: Returns the noise function of the three inputs.
31 ////////////////////////////////////////////////////////////////////
32 INLINE double StackedPerlinNoise3::
33 noise(double x, double y, double z) {
34  return noise(LVecBase3d(x, y, z));
35 }
36 
37 ////////////////////////////////////////////////////////////////////
38 // Function: StackedPerlinNoise3::noise
39 // Access: Published
40 // Description: Returns the noise function of the three inputs.
41 ////////////////////////////////////////////////////////////////////
42 INLINE float StackedPerlinNoise3::
43 noise(const LVecBase3f &value) {
44  return (float)noise(value[0], value[1], value[2]);
45 }
46 
47 ////////////////////////////////////////////////////////////////////
48 // Function: StackedPerlinNoise3::operator ()
49 // Access: Published
50 // Description: Returns the noise function of the three inputs.
51 ////////////////////////////////////////////////////////////////////
52 INLINE double StackedPerlinNoise3::
53 operator ()(double x, double y, double z) {
54  return noise(x, y, z);
55 }
56 
57 ////////////////////////////////////////////////////////////////////
58 // Function: StackedPerlinNoise3::noise
59 // Access: Published
60 // Description: Returns the noise function of the three inputs.
61 ////////////////////////////////////////////////////////////////////
62 INLINE float StackedPerlinNoise3::
63 operator ()(const LVecBase3f &value) {
64  return noise(value);
65 }
66 
67 ////////////////////////////////////////////////////////////////////
68 // Function: StackedPerlinNoise3::noise
69 // Access: Published
70 // Description: Returns the noise function of the three inputs.
71 ////////////////////////////////////////////////////////////////////
72 INLINE double StackedPerlinNoise3::
73 operator ()(const LVecBase3d &value) {
74  return noise(value);
75 }
This is the base class for all three-component vectors and points.
Definition: lvecBase3.h:105
double operator()(double x, double y, double z)
Returns the noise function of the three inputs.
StackedPerlinNoise3()
Creates a StackedPerlinNoise3 object with no levels.
This is the base class for all three-component vectors and points.
Definition: lvecBase3.h:1471
double noise(double x, double y, double z)
Returns the noise function of the three inputs.