Panda3D
Loading...
Searching...
No Matches
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 */
21
22/**
23 * Returns the noise function of the three inputs.
24 */
26noise(double x, double y) {
27 return noise(LVecBase2d(x, y));
28}
29
30/**
31 * Returns the noise function of the three inputs.
32 */
34noise(const LVecBase2f &value) {
35 return (float)noise(value[0], value[1]);
36}
37
38/**
39 * Returns the noise function of the three inputs.
40 */
42operator ()(double x, double y) {
43 return noise(x, y);
44}
45
46/**
47 * Returns the noise function of the three inputs.
48 */
50operator ()(const LVecBase2f &value) {
51 return noise(value);
52}
53
54/**
55 * Returns the noise function of the three inputs.
56 */
58operator ()(const LVecBase2d &value) {
59 return noise(value);
60}
StackedPerlinNoise2()
Creates a StackedPerlinNoise2 object with no levels.
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.