Panda3D
 All Classes Functions Variables Enumerations
stackedPerlinNoise2.I
1 // Filename: stackedPerlinNoise2.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: StackedPerlinNoise2::Default Constructor
18 // Access: Published
19 // Description: Creates a StackedPerlinNoise2 object with no levels.
20 // You should call add_level() to add each level by
21 // hand.
22 ////////////////////////////////////////////////////////////////////
25 }
26 
27 ////////////////////////////////////////////////////////////////////
28 // Function: StackedPerlinNoise2::noise
29 // Access: Published
30 // Description: Returns the noise function of the three inputs.
31 ////////////////////////////////////////////////////////////////////
32 INLINE double StackedPerlinNoise2::
33 noise(double x, double y) {
34  return noise(LVecBase2d(x, y));
35 }
36 
37 ////////////////////////////////////////////////////////////////////
38 // Function: StackedPerlinNoise2::noise
39 // Access: Published
40 // Description: Returns the noise function of the three inputs.
41 ////////////////////////////////////////////////////////////////////
42 INLINE float StackedPerlinNoise2::
43 noise(const LVecBase2f &value) {
44  return (float)noise(value[0], value[1]);
45 }
46 
47 ////////////////////////////////////////////////////////////////////
48 // Function: StackedPerlinNoise2::operator ()
49 // Access: Published
50 // Description: Returns the noise function of the three inputs.
51 ////////////////////////////////////////////////////////////////////
52 INLINE double StackedPerlinNoise2::
53 operator ()(double x, double y) {
54  return noise(x, y);
55 }
56 
57 ////////////////////////////////////////////////////////////////////
58 // Function: StackedPerlinNoise2::noise
59 // Access: Published
60 // Description: Returns the noise function of the three inputs.
61 ////////////////////////////////////////////////////////////////////
62 INLINE float StackedPerlinNoise2::
63 operator ()(const LVecBase2f &value) {
64  return noise(value);
65 }
66 
67 ////////////////////////////////////////////////////////////////////
68 // Function: StackedPerlinNoise2::noise
69 // Access: Published
70 // Description: Returns the noise function of the three inputs.
71 ////////////////////////////////////////////////////////////////////
72 INLINE double StackedPerlinNoise2::
73 operator ()(const LVecBase2d &value) {
74  return noise(value);
75 }
double noise(double x, double y)
Returns the noise function of the three inputs.
This is the base class for all two-component vectors and points.
Definition: lvecBase2.h:1241
double operator()(double x, double y)
Returns the noise function of the three inputs.
StackedPerlinNoise2()
Creates a StackedPerlinNoise2 object with no levels.
This is the base class for all two-component vectors and points.
Definition: lvecBase2.h:105